嗨,我正在尝试更改用户在我的tableview中刷一个uitableviewcell时在删除按钮中显示的文本.
我在另一个问题线程中看到了一个例子,说明要使用这个tableview委托
- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
Run Code Online (Sandbox Code Playgroud)
我的问题是,我如何使用这种方法..我不知道如何使用它.
我已经完成了这个显示以下代码的问题:
-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{
return @"Sagar";
}
Run Code Online (Sandbox Code Playgroud)
如果我想要自定义图像而不是默认的红色按钮怎么办?