Latest | 0.2.0 |
---|---|
Homepage | https://github.com/IMcD23/IMDateScroll |
License | MIT |
Platforms | ios 7.0, requires ARC |
Authors |
[](https://travis-ci.org/ian mcdowell/IMDateScroll)
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
IMDateScroll is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "IMDateScroll"
Author
Ian McDowell, [email protected]
License
IMDateScroll is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "IMDateScroll", "version": "0.2.0", "summary": "Simple date selector library for iOS", "description": " Jump to a specific day (section) of the events list by tapping on the scrollable header at the top. Simple and easy to use.n", "homepage": "https://github.com/IMcD23/IMDateScroll", "license": "MIT", "authors": { "Ian McDowell": "[email protected]" }, "source": { "git": "https://github.com/IMcD23/IMDateScroll.git", "tag": "0.2.0" }, "screenshots": [ "http://www.ianmcdowell.net/content/images/IMDateScroll/1.png", "http://www.ianmcdowell.net/content/images/IMDateScroll/1.png" ], "social_media_url": "https://twitter.com/ian_mcdowell", "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "Pod/Classes" }
Tue, 01 Mar 2016 11:15:03 +0000