2013-10-16 61 views
1

終止應用程序由於uncaught exception NSInternalInconsistencyExceptionUITableView的動畫崩潰發生的歷史,同時插入和刪除

原因:Cell animation stop fraction must be greater than start fraction 同時使用

[self.tableView insertRowsAtIndexPaths:indexPathsToInsert withRowAnimation:insertAnimation]; 
[self.tableView deleteRowsAtIndexPaths:indexPathsToDelete withRowAnimation:deleteAnimation]; 
+0

嘗試將動畫設置爲nil。動畫會出現問題。 – user1673099

+0

你可以看看這個線程: http://stackoverflow.com/questions/11664766/cell-animation-stop-fraction-must-be-greater-than-start-fraction – Alex

+0

你使用任何頁眉/頁腳? – iOS

回答

0

及其對iOS7.x錯誤的解決方法是刪除下面的代表,

tableView:viewForFooterInSection: 
tableView:heightForFooterInSection: 

並將它們替換爲viewD中的以下代碼行idLoad。

tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; 
+0

好吧,但這不適用於您需要部分而不是表格視圖頁腳的情況。 – Ixx