Latest 1.1.3
Homepage https://github.com/andjash/DateCellsController
License MIT
Platforms ios 5.0, requires ARC
Authors

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];

Latest podspec

{
    "name": "DateCellsController",
    "version": "1.1.3",
    "summary": "Simple ios controller for UITableView with date cells.",
    "license": "MIT",
    "homepage": "https://github.com/andjash/DateCellsController",
    "authors": {
        "Andrey Yashnev": "[email protected]"
    },
    "source": {
        "git": "https://github.com/andjash/DateCellsController.git",
        "tag": "1.1.3"
    },
    "platforms": {
        "ios": "5.0"
    },
    "requires_arc": true,
    "source_files": "DateCellsController/*.{h,m}",
    "resources": "DateCellsController/*.{xib}",
    "exclude_files": "Demo/*"
}

Pin It on Pinterest

Share This