OGeek|极客世界-中国程序员成长平台

标题: ios - 从 UICollectionViewCell 复制 Apple iOS Podcast.app 模态视图 Controller [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 11:24
标题: ios - 从 UICollectionViewCell 复制 Apple iOS Podcast.app 模态视图 Controller

我想复制 iPad 上 Apple iOS Podcast 应用程序中模态视图 Controller 的翻转、增长和显示。 http://www.youtube.com/watch?v=llp-oi1Tm-Y&t=15m8s

我是否需要继承 UICollectionViewFlowLayoutUICollectionViewLayout? 当用户点击单元格时,我应该使用 UIView 动画 block 吗? 我应该在何时何地调用 UIView transitionFromView: 方法?

谢谢。



Best Answer-推荐答案


在 UIViewController 上创建一个类别并覆盖“presentViewControler:animated:”方法是你最好的选择。还有其他解决方案,例如动画 UICollectionViewCell 和其他 UIView 动画选项。

我会看看这个答案: Flip, Grow, and Translate Animation

关于ios - 从 UICollectionViewCell 复制 Apple iOS Podcast.app 模态视图 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16810147/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4