我想UITableViewCell在点击编辑按钮或滑动UITableView行时更改减号按钮的颜色并删除按钮.到目前为止,我已实现此代码:
-(IBAction)doEdit:(id)sender
{
[[self keyWordsTable] setEditing:YES animated:NO];
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) {
}
Run Code Online (Sandbox Code Playgroud)