简体   繁体   English

UITableView:在编辑模式下检查行

[英]UITableView: Check rows in edit mode

I'm new to iPhone SDK 3.0. 我是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. 此处的图片( http://twitpic.com/khmog )阐明了我的意思。 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? 可以使用3.0 API完成吗? Thanks. 谢谢。

It seems that Apple uploaded "TableMultiSelect" as sample codes on iOS Developer Program since 2011-10-12. 自2011年10月12日以来,Apple似乎已将“ TableMultiSelect”作为示例代码上传到iOS开发人员计划中。

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 虽然只能在iOS5中使用。.http: //developer.apple.com/library/ios/#samplecode/TableMultiSelect/Introduction/Intro.html

There was a demonstration of this on the CS193P course (available on iTunes U). CS193P课程(在iTunes U上提供)对此进行了演示。 I'm pretty sure it was the Loren Britcher session. 我很确定这是Loren Britcher会议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM