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 并对标记的单元格执行操作?
基础教程推荐
- AdMob 广告未在模拟器中显示 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
