mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-06-13 01:28:58 +08:00
Update README.md
This commit is contained in:
17
README.md
17
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,
|
||||
|
||||
Reference in New Issue
Block a user