mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-04-27 00:01:02 +08:00
Add shortcut for reloadRowsAtIndexPaths
This commit is contained in:
@@ -68,7 +68,8 @@
|
||||
//
|
||||
RETableViewOptionsController *optionsController = [[RETableViewOptionsController alloc] initWithItem:item options:options multipleChoice:NO completionHandler:^{
|
||||
[weakSelf.navigationController popViewControllerAnimated:YES];
|
||||
[weakSelf.tableView reloadRowsAtIndexPaths:@[item.indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
||||
|
||||
[item reloadRowWithAnimation:UITableViewRowAnimationNone]; // same as [weakSelf.tableView reloadRowsAtIndexPaths:@[item.indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
||||
}];
|
||||
[weakSelf.navigationController pushViewController:optionsController animated:YES];
|
||||
}];
|
||||
@@ -86,7 +87,7 @@
|
||||
// Present options controller
|
||||
//
|
||||
RETableViewOptionsController *optionsController = [[RETableViewOptionsController alloc] initWithItem:item options:options multipleChoice:YES completionHandler:^{
|
||||
[weakSelf.tableView reloadRowsAtIndexPaths:@[item.indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
||||
[item reloadRowWithAnimation:UITableViewRowAnimationNone]; // same as [weakSelf.tableView reloadRowsAtIndexPaths:@[item.indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
||||
NSLog(@"%@", item.value);
|
||||
}];
|
||||
[weakSelf.navigationController pushViewController:optionsController animated:YES];
|
||||
|
||||
Reference in New Issue
Block a user