I want to use UITableViewRowAnimation with :reloadData.
Before i used that example for Table loading (I found that in some ios dev guide):
for (NSDictionary *entry in [dl reverseObjectEnumerator]) {
int insertIdx = 0;
[_allEntries insertObject:entry atIndex:insertIdx];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:insertIdx inSection:0]]
withRowAnimation:UITableViewRowAnimationRight];
}
But that way seems to be really slow on big data, so how to fast load tableviews with animation?
You should take a look at
beginUpdatesandendUpdates. Within these two commands you can update/remove/insert rows and have them animated for you. It’s also much more efficient than usingreloadData.More on this topic here: http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableView_Class/Reference/Reference.html
Quick excerpt: