CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | Custom |
| ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Control the duration and completion of UITableView row/section-updating methods.
You can install UITableView-AnimationControl through CocoaPods adding the following to your Podfile:
pod 'UITableView-AnimationControl'
This is how you should use it:
[self.tableViewDataArray addObject:object];
[self.tableView beginSmartUpdatesForDuration:0.25];
[self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:rowAnimation completion:^{
// Update animations ended. Do whatever you want!
}];
[self.tableView endSmartUpdates];Notice it gets integrated perfectly with NSFetchedResultsController.
These are all methods available:
insertRowsAtIndexPaths:withRowAnimations:completion:insertSections:withRowAnimation:completion:deleteRowsAtIndexPaths:withRowAnimations:completion:deleteSections:withRowAnimation:completion:reloadRowsAtIndexPaths:withRowAnimation:completion:reloadSections:withRowAnimation:completion:moveRowAtIndexPath:toIndexPath:completion:moveSection:toSection:completion:UITableView-AnimationControl is available under the MIT license.
Also, I'd really love to know you're using it in any of your projects, so send me an email or a tweet and make my day :)