objective-c - UITableView 滑动删除 : how to customize button and action?

标签 objective-c iphone uitableview

我想执行不同的操作,不是删除对象而是归档它们。 当用户在 tableViewCell 上滑动时,我需要显示“存档”而不是删除。将“删除”按钮的文本和颜色更改为其他内容。

如何自定义“删除模式”外观?

最佳答案

貌似3.0以后有这样的方法:

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);

关于objective-c - UITableView 滑动删除 : how to customize button and action?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1276871/

相关文章:

ios - 方法中包含大括号是什么意思?

objective-c - 如何隐藏 NSDocument 窗口标题栏中的文件图标

objective-c - EKRecurrenceRule with end repeat never

iphone - 100% 宽度表格中的链接会生成 90% 宽度表格

iphone - UIViewContentModeScaleAspectFit iphone sdk 提供质量差的图像

uitableview 中的 ios 进度条

objective-c - #pragma 标记的意义​​是什么?为什么我们需要#pragma 标记?

ios - 图像未显示在图像阵列上

ios - UITableViewCell IBAction 在 iOS 7 中不起作用

ios - 在单元格的 imageView 中为图像添加边框