我收到了一個應用程序UITTableView
。此表是可更新的。並且在下次更新時,行數少於先前版本,我實現了UITableView's
方法 - deleteRowsAtIndexPaths。deleteRowsAtIndexPaths without animation
我做了這種方式:
[table beginUpdates];
[table deleteRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationNone];
[table reloadRowsAtIndexPaths:indexPathsReload withRowAnimation:UITableViewRowAnimationNone];
[table endUpdates];
但是,當我實現這個代碼有動畫。這個動畫真的很糟糕。很多黑色的泄漏。但我確實在兩種方法中寫入了 - withRowAnimation:UITableViewRowAnimationNone
:刪除和重新加載。
爲什麼?我如何重新加載和刪除沒有動畫的行?
我不能這樣做,因爲我有第一個單元格,這是我不應該重新加載 – 2012-04-16 07:22:44
設定手勢識別在cellforrowatIndex – developerdude 2012-04-17 07:03:44