func tableView(tableView: UITableView,canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool { return true } trueで編集許可。セクションや行で判定して許可を設定する。 セルの削除ボタンが押された時の処理 editingStyleにdeleteが入っていれば、削除ボタンが押されたと分かる。 下の例はセル表示で使っている配列を削除するとともに、見た目上のセルも削除している。 func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) { if editingSty