From 48da47ec046852cb92e8aff775dfeb4fbfaca719 Mon Sep 17 00:00:00 2001 From: Roman Efimov Date: Thu, 18 Jul 2013 15:26:03 -0500 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index a88c68e..c6d5099 100644 --- a/README.md +++ b/README.md @@ -340,6 +340,23 @@ RETableViewSection *section = [RETableViewSection sectionWithHeaderTitle:@"Test" }]]; ``` +### Date Item (UISlider) Example + +``` objective-c +// Create the manager +// +_tableViewManager = [[RETableViewManager alloc] initWithTableView:self.tableView]; + +// Add a section +// +RETableViewSection *section = [RETableViewSection sectionWithHeaderTitle:@"Test"]; +[_tableViewManager addSection:section]; + +// Add a float item +// +[section addItem:[REDateTimeItem itemWithTitle:@"Date / Time" value:[NSDate date] placeholder:nil format:@"MM/dd/yyyy hh:mm a" datePickerMode:UIDatePickerModeDateAndTime]]; +``` + ### Custom Cells `RETableViewManager` allows to map custom objects to custom cells. In order to map your custom object (an item) to a cell,