Example on how to use deselectRowAnimated

This commit is contained in:
Roman Efimov
2013-06-25 14:30:25 -05:00
parent 76f1fd4828
commit 5e4215d884

View File

@@ -36,7 +36,7 @@
[_manager addSection:section];
[section addItem:[RETableViewItem itemWithTitle:@"Forms" accessoryType:UITableViewCellAccessoryDisclosureIndicator selectionHandler:^(RETableViewItem *item) {
[weakSelf.tableView deselectRowAtIndexPath:item.indexPath animated:YES];
[item deselectRowAnimated:YES]; // same as [weakSelf.tableView deselectRowAtIndexPath:item.indexPath animated:YES];
[weakSelf.navigationController pushViewController:[[ControlsViewController alloc] initWithStyle:UITableViewStyleGrouped] animated:YES];
}]];