I'm trying to delete a row from my table view and so far have been unsuccessful. The problem is that row data is deleted successfully but unable to delete seperator line of table view that's table view skeleton seen as it is rather data.
The code that I used to try deleting rows is as follows.
[autocompleteTableView beginUpdates];
NSLog(@"animationArray Count: %d",[autocompleteSignalsList count]);
for (int i=[autocompleteSignalsList count]-1; i>=0; i--) {
[autocompleteTableView reloadData];
NSArray *paths = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:i inSection:0]];
[self.autocompleteSignalsList removeObjectAtIndex:i];
[autocompleteTableView deleteRowsAtIndexPaths:paths withRowAnimation:UITableViewRowAnimationFade];
[autocompleteTableView delegate];
}
[autocompleteTableView endUpdates];
Now for the questions I hope to get answered: How can I delete rows properly?