菜鸟教程小白 发表于 2022-12-12 11:24:32

ios - 从 UICollectionViewCell 复制 Apple iOS Podcast.app 模态视图 Controller


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

<p>我是否需要继承 <code>UICollectionViewFlowLayout</code> 或 <code>UICollectionViewLayout</code>?
当用户点击单元格时,我应该使用 UIView 动画 block 吗?
我应该在何时何地调用 <code>UIView transitionFromView:</code> 方法?</p>

<p>谢谢。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>在 UIViewController 上创建一个类别并覆盖“presentViewControler:animated:”方法是你最好的选择。还有其他解决方案,例如动画 UICollectionViewCell 和其他 UIView 动画选项。</p>

<p>我会看看这个答案:
<a href="https://stackoverflow.com/questions/10038156/flip-grow-and-translate-animation" rel="noreferrer noopener nofollow">Flip, Grow, and Translate Animation</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 从 UICollectionViewCell 复制 Apple iOS Podcast.app 模态视图 Controller ,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/16810147/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/16810147/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 从 UICollectionViewCell 复制 Apple iOS Podcast.app 模态视图 Controller