开发者

Customization of tableView delete option

Currently, I am using the following process:

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
           editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
   return UITableViewCellEditingStyleD开发者_如何转开发elete;
}

to delete a row in a tableView.

I am using the swipe functionality to get the red delete button. But I feel this is still a bit painful process for the user. Is there a way in which i can delete the row without having the swipe action? Can I customize the entire process of deleting a row using tableView delegate methods? Is it possible to customize the red delete button to something else so that it gives a different look and feel to the user?


It is possible to delete or insert multiple cells at a time by using UITableView's insertRowsAtIndexPaths:withRowAnimation: and deleteSections:withRowAnimation: Check my post on this here

Perhaps you could design your code such that when your are editing the table, the user taps each cell, and then presses a button to commit the changes to all the relevent at once?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜