修改UITableView中Delete操作的默认按钮
以前写过一篇文章: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即可。