UITableView: Check rows in edit mode

爱⌒轻易说出口 提交于 2019-12-22 01:16:39

问题


I'm new to iPhone SDK 3.0.

I've seen table view edit mode where you can check multiple row items and then delete them or move them.

The picture here (http://twitpic.com/khmog) illustrates what I mean. I've also seen this in several other apps, such as "Groceries".

Could anyone tell me how to do this? Can this be done using 3.0 APIs? Thanks.


回答1:


It seems that Apple uploaded "TableMultiSelect" as sample codes on iOS Developer Program since 2011-10-12.

It explains only multiple deletion, but I suppose you can change it for moving.

Though it can be used only from iOS5.. http://developer.apple.com/library/ios/#samplecode/TableMultiSelect/Introduction/Intro.html




回答2:


I've found a solution here:

http://iphonedevelopment.blogspot.com/2008/10/table-view-multi-row-edit-mode.html




回答3:


There was a demonstration of this on the CS193P course (available on iTunes U). I'm pretty sure it was the Loren Britcher session.



来源:https://stackoverflow.com/questions/1526586/uitableview-check-rows-in-edit-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!