2
如何编程刷新UITableCell的能力。我已经有了一个我一直在使用UITableCell的子类。我只是在处理它的滑动,就像我会看到的一样?iPhone Dev:轻扫UITableCell
如何编程刷新UITableCell的能力。我已经有了一个我一直在使用UITableCell的子类。我只是在处理它的滑动,就像我会看到的一样?iPhone Dev:轻扫UITableCell
您将需要实现这个方法:
tableView:editingStyleForRowAtIndexPath:
,并返回UITableViewCellEditingStyleDelete
为了使它工作,你还需要实现这些方法:
tableView:commitEditingStyle:forRowAtIndexPath:
tableView:canEditRowAtIndexPath:
要定制删除按钮的文字看到这个帖子: UITableView Swipe to delete: how to customize button and action?
不错。谢谢。 – Oscar 2010-11-23 18:49:47