2012-01-05 68 views
-1

如何将tableview单元格从第一行拖到第五行?如何将tableview单元格从一行拖到另一行?

这可以在iPhone上实现吗?

如果是,请提前告诉我如何执行此操作。

+0

http://developer.apple.com/library/IOs/documentation/UserExperience/Conceptual/ TableView_iPhone/ManageReorderRow/ManageReorderRow.html#// apple_ref/doc/uid/TP40007451-CH11-SW1如果您在阅读后遇到特定问题,请提出具体问题。 – jrturton 2012-01-05 15:29:34

回答

1

实现以下UITableViewDelegate方法:

tableView:canMoveRowAtIndexPath: 
tableView:moveRowAtIndexPath:toIndexPath: 

,并在在的tableView editing属性设置为YES

相关问题