Update README.md

This commit is contained in:
Roman Efimov
2013-07-18 15:26:03 -05:00
parent 3d5f1bb164
commit 48da47ec04

View File

@@ -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,