2010-08-16 79 views

回答

2

檢查以下UITableView的方法:deleteRowsAtIndexPaths:withRowAnimation,deleteSections:withRowAnimation,insertRowsAtIndexPaths:withRowAnimation,insertSections:withRowAnimation

+1

注意,這是刪除行/部分,而不是隱藏它們。這意味着編號的變化,這是一個輕微的痛苦跟蹤... – 2010-08-16 02:21:59

+0

這是蘋果如何做到這一點? – 2010-08-16 02:38:41

+0

那麼,你可以在數據控制器中實現「隱藏」(你仍然需要以某種方式將可視化表示與數據模型綁定)。糾正我,如果我錯了,但我相信這是蘋果如何做到這一點。 – sha 2010-08-16 11:54:26