如何本地化标准iOS控件?

And*_*rew 4 localization uitableview ios

我正在编写一个iPhone应用程序,其中包含一个UITableViewCellEditingStyleDelete样式的表格单元格.这会使单元格显示为左侧包含减号的红色圆圈.好到目前为止.它还有一个删除按钮(矩形按钮,文本"删除")在右侧.我需要将文本"删除"更改为其他语言的本地化.这个文本定义在哪里?

sud*_*-rf 16

你应该看看下面的方法UITableViewDelegate Protocol:

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
Run Code Online (Sandbox Code Playgroud)

查看文档.