我想像这里一样动画collectionView Cell:
https://d13yacurqjgara.cloudfront.net/users/147165/screenshots/2232500/duolingo3.gif
我认为他们在这里使用了CollectionView。
collectionView.contentInset = UIEdgeInsetsMake(0, (self.view.frame.size.width - 300)/2, 0, (self.view.frame.size.width - 440)/2);
UIView.transitionWithView(collectionView, duration: 1.0, options: UIViewAnimationOptions.CurveEaseIn, animations: { () -> Void in
cell.frame.size.height = self.view.frame.size.height - 200
cell.frame.size.width = self.view.frame.size.width - 100
}, completion: nil)
我有尺寸转换但看起来不一样。我尝试在cellForItemAtIndexPath中制作这个动画。