我需要更改当我尝试从UITableView后设置编辑中删除行时出现的默认删除按钮的标题YES.
我已经完成了这个显示以下代码的问题:
-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{
return @"Sagar";
}
Run Code Online (Sandbox Code Playgroud)
如果我想要自定义图像而不是默认的红色按钮怎么办?
当我打电话时[self.tableView setEditing:YES animated:YES],tableview进入编辑模式.当我按下圆形减号按钮时,会出现删除按钮.我想更改此删除按钮的标题.我怎样才能做到这一点?