I would like items in my UICollectionView
to animate as the user scrolls through the list.
More specifically, I would like each item to gradually flip around as it "leaves" the visible part of the scroll view.
Any suggestions?
You probably want to use UIKit dynamics. Here is a good example: http://www.objc.io/issue-5/collection-views-and-uidynamics.html
There are some pre-set dynamic behaviours described at Apple's documentation ,
The best choice seems to be the UIDynamicItemBehavior
, as it has an allowsRotation
property.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.