Fix for RERadioItem

This commit is contained in:
Roman Efimov
2013-04-05 12:00:52 -05:00
parent 816e715555
commit de2bcacf78
3 changed files with 6 additions and 6 deletions

View File

@@ -52,7 +52,7 @@
[section addItem:[REBoolItem itemWithTitle:@"Bool item" value:YES]];
RERadioItem *optionItem = [RERadioItem itemWithTitle:@"Radio" value:@"Option 4" actionBlock:^(RETableViewItem *item) {
RERadioItem *optionItem = [RERadioItem itemWithTitle:@"Radio" value:@"Option 4" actionBlock:^(RERadioItem *item) {
[weakSelf.tableView deselectRowAtIndexPath:item.indexPath animated:YES];
// Generate sample options
@@ -64,7 +64,7 @@
// Present options controller
//
RETableViewOptionsController *optionsController = [[RETableViewOptionsController alloc] initWithItem:item options:options completionHandler:^(RETableViewItem *selectedItem) {
item.detailLabelText = selectedItem.title;
item.value = selectedItem.title;
[weakSelf.tableView reloadRowsAtIndexPaths:@[item.indexPath] withRowAnimation:UITableViewRowAnimationNone];
}];
[weakSelf.navigationController pushViewController:optionsController animated:YES];