objective c - Delete row UITableView issue -
I am using this code ... but it has terminated my application several times:
) - (zero) Table view: (UITableView *) TV Committee style: (UITableViewCellEditingStyle) forowAtIndexPathStyle for editing: (NSIndexPath *) indexPath {// FeedArray is NSMutableArray if (editingStyle == UITableViewCellEditingStyleDelete) {[self .tableView startUpdates]; [Fade removal object_it index: indexpath.ro]; [Self.tableView deleteRowsAtIndexPaths: [NSArray arrayWithObject: indexPath] with Row Animation: UITableViewRowAnimationFade]; } [Self.tableView and Updates]; }Why is this happening? Is there any other way to do this?
I think that or [self.tableView endupdates];
should be in the if {} block
[self.tableView startupdates];
should be before , if {}
Comments
Post a Comment