我想在向上滾動時在iOS 7中製作滾動效果,這些行將像這樣gif顯示。向下滾動時請忘記效果(因爲我找不到更好的樣本)。然而,我不知道該怎麼做,儘管做了研究,任何解決方案和開源都很感激!在iOS 7中滾動行效果
http://d13yacurqjgara.cloudfront.net/users/107759/screenshots/1176252/moments-ios7.gif
我想在向上滾動時在iOS 7中製作滾動效果,這些行將像這樣gif顯示。向下滾動時請忘記效果(因爲我找不到更好的樣本)。然而,我不知道該怎麼做,儘管做了研究,任何解決方案和開源都很感激!在iOS 7中滾動行效果
http://d13yacurqjgara.cloudfront.net/users/107759/screenshots/1176252/moments-ios7.gif
這是通過向UIKit組件添加重力效果完成的。一旦添加attachmentBehaviors,就可以輕鬆實現此效果。
你可以找到一個tutorial help here。
還有另一種特定於UITableViewCells here的解決方案。
明智的做法是使用一個UITableView
&重新加載表視圖數據的動畫可以通過以下方式被用來給出表重裝期間回彈效果。
[_tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];
對應的行動畫效果應該在這裏給出。
對於在gif中看到的每個部分的滾動延遲,我建議您繼續進行單個單元格的動畫。
通過這個開源link,這可能是有用的。
如果我執行確切的動畫效果,請嘗試恢復。
好資源,男人。順便說一句,我剛剛發現這個https://github.com/onevcat/VVSpringCollectionViewFlowLayout。 – GooX 2015-04-01 08:10:09
謝謝,我剛剛發現這個https://github.com/onevcat/VVSpringCollectionViewFlowLayout。我試試看。 – GooX 2015-04-01 08:09:28