2016-03-12 222 views

回答

1

首先,刪除這是在您的數據源與細胞相關的項目,讓我們假設你在第一部拆卸排第六。

let indexPath = NSIndexPath(forRow: 5, inSection: 0) 
self.tableView.beginUpdates() 
self.tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Automatic) 
self.tableView.endUpdates() 
+0

這似乎作品!但是我只需要當前的indexPath就沒有其他任何東西。因爲我有不止一個部分和更多的行!我也使用NSFetchedResultsController類以及它們的委託協議方法。他們完美的作品。但是我不需要UITableView的默認刪除功能。感謝您的理解! –

相關問題