如何在编辑时更改iPhone UITableView删除按钮标题 [英] How to change iPhone UITableView delete button title while editing it

查看:98
本文介绍了如何在编辑时更改iPhone UITableView删除按钮标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我将编辑设置为 YES后尝试从 UITableView 中删除​​行时,我需要更改默认删除按钮的标题

I need to change the title of the default delete button that appears when I attempt to delete a row from a UITableView after setting editing to YES.

推荐答案

您可以在UITableView委托方法中更改它

You can change it in UITableView delegate method

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath

这篇关于如何在编辑时更改iPhone UITableView删除按钮标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆