objective c - How to delete a row of a Table in iPhone -
itemprop = "text">
A UITableView to me and I is that the user intends to provide functionality like when he slips or breaks Fiss your finger on it Is the line I have provided editing style know which provides a circular red button with -ve sign him, but how to implement Fliking style I've seen using several applications, so Apple has no inbuilt delegate it or us You have to write your own controller for this.
You table to swipe scene representative is required to be implemented
< By pre> - (void) table Views: (UITableView *) tableView commitEditingStyle: (UITableViewCellEditingStyle) editingStyle forRowAtIndexPath: (NSIndexPath *) indexPath
method, swipe to delete this interaction Will provide access. I usually provide an editing interaction to host where it is possible to delete because some of the swipe interaction users are hidden.
For example:
- (minus) Talikadrishy: (UITableView *) Table View Bejenaiting Style: (UITableViewCellEditingStyle) RowAtIndexPath for editing style: (NSIndexPath *) IndexPath {[tableView startUpdates]; If (Editing Sky == UITableViewCellEditingStyleDelete) {// Do you also need to remove the data ... // Delete row of data source [Talikadrishy Htaanarandaksapathः [NSArray arrayWithObjects: Indekspath zero] of Sathroanimeshn: UITableViewRowAnimationTop]; } [Table view end update]; }
Hope that helps.
Comments
Post a Comment