mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-06-17 05:29:59 +08:00
Fix for RERadioItem
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user