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 [self.tableView endupdates]; should be in the if {} block

or [self.tableView startupdates]; should be before , if {}


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -