ios - Delete row in UITableView in conjunction with Parse -
I am trying to delete a line in a UITableView (PFQueryTableViewController). Deletes the object in the class, but only in the table is reflected when I refresh the table here is the code I am using.
- (BOOL) Table view: (UITableView *) Table view can edit the audit path: (NSIndexPath *) indexPath {return yes; } - (Zero) TableView: (UITableView *) Viewing Table Viewing Style: (UITableViewCellEditingStyle) RowAtIndexPath for editing style: (NSIndexPath *) indexPath {if (editingStyle == UITableViewCellEditingStyleDelete) {PFObject * object = [self.objects objectAtIndex: indexPath .row]; [Object delete Inboxground with block: ^ (Bull succeeded, NSERR * error) {[Tableview reloaded data]; }]; <}
Solve it.
Instead of [TableView reloadData]
, I've used [[SWIFT]]
.
However, there is no general deleted animation there.
Comments
Post a Comment