I have a table view with 100 cells. At first it is empty. Then I call:
[_tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationLeft];
Since there was nothing in the table view, I need to create several cells. However, I expected the table view to be set to 10 (to fit the screen size) ... not 100!
This does not happen when I just reload the table view without any animation:
[_tableView reloadData]
This problem forces the table to reload very slowly: is there a way to make it query only 10 cells?
Edit
Perhaps I was not clear enough: At first , the table has no record . Then , I add 100 records to my data source and ask to reload the table: there is no visible cell before the reboot, so the reloadRowsAtIndexPaths solution reloadRowsAtIndexPaths not work.
source share