IMDateScroll 0.2.0

IMDateScroll 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Ian McDowell.




Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Check out the sample view controller in the example project. There are a few delegate methods you can implement if you wish (none are required), including:

- (UICollectionViewCell *)dateScrollView:(IMDateScrollViewController *)dateScrollView headerCellForDate:(NSDate *)date
- (UITableViewCell *)dateScrollView:(IMDateScrollViewController *)dateScrollView cellForEvent:(NSInteger)event onDate:(NSDate *)date
- (NSString *)dateScrollView:(IMDateScrollViewController *)dateScrollView titleForDate:(NSDate *)date
- (void)dateScrollView:(IMDateScrollViewController *)dateScrollView didSelectEventOnDate:(NSDate *)date

This library uses two data sets:

  • Events - An NSdictionary of NSDates mapped to an NSArray of event objects (whatever you like)
  • Dates - An NSArray of the keys of the dictionary, sorted in whatever order you want to display them in.

Requirements

  • Only tested on iOS 7+
  • Requires ARC

Installation

Author

Ian McDowell, [email protected]

License

IMDateScroll is available under the MIT license. See the LICENSE file for more info.