`
jsntghf
  • 浏览: 2477068 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

修改UITableView中Delete操作的默认按钮

    博客分类:
  • iOS
阅读更多

以前写过一篇文章:TableView中的Delete操作,通过这篇文章,可以实现删除表视图的某条记录,但默认的删除按钮为Delete,如果想显示为删除的话,则需要实现UITableViewDelegate中的- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath方法。

 

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

 

或者,最简单的方式,将plist中的Localization native development region改为China即可。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics