http://qiita.com/kiiita/items/22bcb7c503eaa2f2d423
この辺のページを見て同じように作っては見たんですがうまくいきません
![イメージ説明]WIDTH:600
下記コードを追加すると各セルがスワイプできるようになりました。
しかしDeleteが出てきません。storyboard等でdeleteの表示領域をつくらないといけないとかありますでしょうか?
lang
1class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { 2 3 : 4 : 5 6 func tableView(tableView: UITableView!, canEditRowAtIndexPath indexPath: NSIndexPath!) -> Bool { 7 return true 8 } 9 10 func tableView(tableView: UITableView!, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath!) { 11 if (editingStyle == UITableViewCellEditingStyle.Delete) { 12 // handle delete (by removing the data from your array and updating the tableview) 13 } 14 }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。