CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

DateCellsController 1.1.3

DateCellsController 1.1.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by andjash.



  • By
  • Andrey Yashnev

Simple ios controller for UITableView with date cells

Preview

Preview1 Preview2 Preview3

(Check video: http://screencast.com/t/Vp94gyhpjUwr)

Usage

Import required header

#import "DateCellsController.h"

Create NSIndexPath to NSDate mapping

NSIndexPath *path = [NSIndexPath indexPathForRow:2 inSection:0];
NSIndexPath *path2 = [NSIndexPath indexPathForRow:0 inSection:0];
NSIndexPath *path3 = [NSIndexPath indexPathForRow:0 inSection:1];


NSDate *date = [NSDate date];
NSDate *date2 = [NSDate dateWithTimeIntervalSinceNow:5000];
NSDate *date3 = [NSDate dateWithTimeIntervalSinceNow:10000];


NSMutableDictionary *indexPathToDateMapping = [[@{path : date,
                                                 path2 : date2,
                                                 path3 : date3}
                                                   mutableCopy] autorelease];

Attach controller to existing UITableView with proper mapping

DateCellsController *dateCellsController = attachToTableView:self.tableView
                                                withDelegate:self
                                                 withMapping:indexPathToDateMapping];