// 自定義左滑顯示編輯按鈕 - (NSArray<UITableViewRowAction*>*)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewRowAction *rowAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@" 刪除 " handler:^(UITableViewRowAction * _Nonnull action, NSIndexPath * _Nonnull indexPath) { NSLog(@"刪除"); }]; rowAction.backgroundColor = [UIColor yellowColor]; NSArray *arr = @[rowAction]; return arr; }