GithubHelp home page GithubHelp logo

urmi1 / calendar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jumartin/calendar

0.0 2.0 0.0 507 KB

A set of views and controllers for displaying and scheduling events on iOS

License: MIT License

Objective-C 54.82% HTML 45.18%

calendar's Introduction

MGC Graphical Calendars Library is a set of views and controllers for displaying and scheduling events on iOS.

Day Planner View

Month Planner View

Year Calendar View

Features

  • Create and schedule events with iCal-like views and controllers
  • 3 kinds of views are available (a day planner view, a month planner view and a year view)
  • Scroll infinitely through days / months, or restrict scrolling to a given date range
  • Page through weeks in the day planner view
  • Use a standard view for event cells or create your own custom views
  • Easily customize appearance and layout (date format, size of headers, number of visible days...)
  • Create events by tap-and-hold on the view
  • Drag-and-drop events to another date or time
  • Scroll through days / months while dragging
  • Specialized controllers for EventKit data source but can easily work with any custom event provider
  • Background event loading for the EventKit controllers
  • Ability to show an activity indicator for days while events are loading
  • Restrict ability to create or move events to certain dates through datasource protocol methods (currently only in day planner view)
  • Zoom in/out the day planner view to increase or decrease the height of hour slots

Compatibility

iPad with iOS 7 or higher.

The views work on the iPhone but the EventKit controllers still need a bit of work.

Installation

Copy the CalendarLib folder content into your project.

Getting started

  1. Create a new project

  2. Import the CalendarLib folder into the project

  3. If you want to use EventKit as a data source, create an instance of MGCDayPlannerEKViewController or MGCMonthPlannerEKViewController, or subclass them for your own needs.

    Don't forget to add the following frameworks to the project:

    • EventKit.framework
    • EventKitUI.framework
  4. If you want to use another event provider, subclass one of MGCDayPlannerViewController or MGCMonthPlannerViewController and implement the data source protocol methods.

  5. If you want to use a custom event cell, subclass MGCEventView or MGCStandardEventView and register the class with the day / month planner view.

See the demo project to get an idea of how to use the library.

Have a look at the CalendarDocs folder for (incomplete) documentation on the day planner view.

Todo

  • make the EventKit controllers work on the iPhone
  • make a demo app for the iPhone

License

MGC Graphical Calendars Library is available under the MIT license. See the LICENSE file.

An email telling me in what kind of application you're using it would be welcome!

calendar's People

Contributors

jumartin avatar

Watchers

James Cloos avatar Urmi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.