Assertion failure in -[UITableView _endCellAnimationsWithContext:]

I don’t see the reason for you to show us this part of code. Your error must be connected to this part in your code I assume

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section

Probably you are making a mistake in one of these data source methods. Currently it’s impossible to say what exactly is wrong but I assume it could be something like: You are telling the table view in the numberOfRowsInSection you would like to have n rows reserved and setup and in the cellForRowAtIndexPath you then only handle n – 1 rows for example.

Sorry that this answer can’t be as precise as it should be. If you show us your implementation of your data source it would be much easier to tell what’s going on.

Leave a Comment