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

标签 ios objective-c iphone core-animation calayer

enter image description here

如何使用 CALayer 实现这个 iOS 7 折纸动画。 提前致谢。

最佳答案

如果你不想达到这样的效果,你应该开始学习 CALayer,特别是这个子类 CATransformLayer 和它的属性 -sublayerTransform.

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

Unlike normal layers, transform layers do not flatten their sublayers into the plane at Z=0.


这是一个很好的起点Create a fold animation .

关于ios - 在 iOS 中使用 Core 动画打开纸张动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31241875/

相关文章:

javascript - 在 UIWebView 中从 JavaScript 获取返回值

iphone - iOS:在LockScreen中显示当前播放的轨道信息吗?

ios - 在 WatchKitExtension 中混合 swift 和 objective-c

ios - 禁用编辑但允许继续快速输入

ios - 快速加载 UITableViewCell 中的 MKMapView

objective-c - 在 Objective-C 中使用 Swift 协议(protocol)

ios - 为什么这个推送到 View Controller 不起作用?

iphone - 用户单击“主页”按钮时如何显示退出确认对话框?

ios - 在 iOS WebView 中获取 PDF 文档高度

iphone - 为什么我的 subview 无法根据设备方向正确居中?