Zia*_*Zia 3 cocoa-touch uitableview ios
当我打电话时[self.tableView setEditing:YES animated:YES],tableview进入编辑模式.当我按下圆形减号按钮时,会出现删除按钮.我想更改此删除按钮的标题.我怎样才能做到这一点?
rma*_*ddy 12
使用适当的UITableViewDelegate方法可以轻松完成:
- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath {
return @"CustomLabel";
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1536 次 |
| 最近记录: |