ios - 如何修改tableviewcell删除-确认按钮的提示字符串

标签 ios objective-c swift

当我想删除一个单元格时,我只想更改 TableViewCell 的确认按钮的标题,但我在引用中找不到任何相关属性。 我只想将标题从 delete 更改为 trash,有人知道怎么做吗?

最佳答案

-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath {
    return @"trash";
}

关于ios - 如何修改tableviewcell删除-确认按钮的提示字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30815311/

相关文章:

ios - 在 UISegmentedControl 上录制点击在测试期间获取断言失败

c# - Xamarin IOS 隐藏栏后退按钮

ios - 使用 AVCaptureVideoDataOutputSampleBufferDelegate 方法延迟执行 dispatch_async block

升级到 Xcode 4.5 后,iOS 5 SDK 消失了

ios - 如果在 .h 文件中声明,则需要分配和初始化对象

ios - 将使用 NSLog 视为构建错误

objective-c - Objective C 所有权争议

arrays - 从 TicketMasters API 中提取数据 (Swift 4.0/Decodable)

ios - 未调用 TableViewCell 内的 UICollectionView

swift - SpriteKit 场景切换时的内存问题