I am using UITableViewController and getting this error while updating tableView. Below is my code:
This occurs when i do a click event:
[timeZoneNames insertObject:@"HELLO" atIndex:0];
[self.tableView beginUpdates];
NSArray *insertIndexPaths = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]];
[self.tableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationTop];
[self.tableView endUpdates];
I tried looking for apple documentation but that didnt helped.
Thanks, Aby