UITableView
のボタンを押すと、セルの右側に削除ボタンが表示されますViewController
が、セルの左側にある赤いマイナス円は表示されません。
これに関するアイデアはありますか?
UITableView
のボタンを押すと、セルの右側に削除ボタンが表示されますViewController
が、セルの左側にある赤いマイナス円は表示されません。
これに関するアイデアはありますか?
これをトリガーするためのボタン アクションは必要ありません。次のデリゲートを実装すると、セルを直接スワイプして削除できます。
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
//Delete the row
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
}