How to mark multiple UITableViewCells and perform an action on marked cells?(如何标记多个 UITableViewCells 并对标记的单元格执行操作?)
问题描述
我想做邮件应用程序所做的事情:当我选择编辑时,而不是通常的删除按钮,单选按钮出现在用户可以检查的一侧,然后用户可以单击对标记的单元格执行操作的按钮(任何类型的操作,不只是删除).是否有任何苹果示例代码可以做到这一点?任何人都可以提供一些关于如何做到这一点的代码或文档吗?谢谢.
I would like to do pretty much what the Mail Application does: that when I select Edit, instead of the usual Delete Button, Radio Buttons appear on the side that may be checked by the user, then the user may click on a Button to take an action on the marked cells(any kind of action not just delete). Is there any apple sample code that does this?, can anyone please provide some code or documentation on how to do this?. Thank you.
-奥斯卡
推荐答案
这是一篇关于如何进行邮件式多选的好文章:
Here is a good article about doing a Mail-style multiple selection:
http://cocoawithlove.com/2009/01/multiple-row-selection-and-editing-in.html
这篇关于如何标记多个 UITableViewCells 并对标记的单元格执行操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何标记多个 UITableViewCells 并对标记的单元格执行操作?


基础教程推荐
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01