菜鸟教程小白 发表于 2022-12-13 11:08:13

ios - 在 iOS 中使用 Core 动画打开纸张动画


                                            <p><p> <img src="/image/VwlBA.gif" alt="enter image description here"/> </p>

<p>如何使用 CALayer 实现这个 iOS 7 折纸动画。
提前致谢。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>如果你不想达到这样的效果,你应该开始学习 <code>CALayer</code>,特别是这个子类 <code>CATransformLayer</code> 和它的属性 <code>-sublayerTransform</code>.<br/></p>

<blockquote>
<p>CATransformLayer objects are used to create true 3D layer hierarchies,
rather than the flattened hierarchy rendering model used by other
CALayer classes.</p>

<p>Unlike normal layers, transform layers do not flatten their sublayers
into the plane at Z=0.</p>
</blockquote>

<p><br/>
这是一个很好的起点<a href="http://code.tutsplus.com/tutorials/create-a-3d-page-folding-animation-page-sketch-spine-fold-effect--mobile-13473" rel="noreferrer noopener nofollow">Create a fold animation</a> .</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在 iOS 中使用 Core 动画打开纸张动画,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/31241875/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/31241875/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在 iOS 中使用 Core 动画打开纸张动画