2015-04-01 66 views

回答

0

這是通過向UIKit組件添加重力效果完成的。一旦添加attachmentBehaviors,就可以輕鬆實現此效果。

你可以找到一個tutorial help here

還有另一種特定於UITableViewCells here的解決方案。

+1

謝謝,我剛剛發現這個https://github.com/onevcat/VVSpringCollectionViewFlowLayout。我試試看。 – GooX 2015-04-01 08:09:28

0

明智的做法是使用一個UITableView &重新加載表視圖數據的動畫可以通過以下方式被用來給出表重裝期間回彈效果。

[_tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade]; 

對應的行動畫效果應該在這裏給出。

對於在gif中看到的每個部分的滾動延遲,我建議您繼續進行單個單元格的動畫。

通過這個開源link,這可能是有用的。

如果我執行確切的動畫效果,請嘗試恢復。

+0

好資源,男人。順便說一句,我剛剛發現這個https://github.com/onevcat/VVSpringCollectionViewFlowLayout。 – GooX 2015-04-01 08:10:09