没有合适的资源?快使用搜索试试~ 我知道了~
首页Core Animation Programming Guide(Core Graphics 框架参考)
Core Animation Programming Guide(Core Graphics 框架参考)
5星 · 超过95%的资源 需积分: 9 14 下载量 53 浏览量
更新于2023-03-16
评论
收藏 2.46MB PDF 举报
苹果官网文档,Core Animation 是一种能让您制作高级动画和视觉效果的技术。UIKit 提供的动画,是建立在 Core Animation 技术之上的。如果您需要超出 UIKit 功能的高级动画,可以直接使用 Core Animation。
资源详情
资源评论
资源推荐
Core Animation
Programming Guide
Contents
About Core Animation 9
At a Glance 9
Core Animation Manages Your App’s Content 10
Layer Modifications Trigger Animations 10
Layers Can Be Organized into Hierarchies 10
Actions Let You Change a Layer’s Default Behavior 10
How to Use This Document 11
Prerequisites 11
See Also 11
Core Animation Basics 12
Layers Provide the Basis for Drawing and Animations 12
The Layer-Based Drawing Model 12
Layer-Based Animations 13
Layer Objects Define Their Own Geometry 14
Layers Use Two Types of Coordinate Systems 15
Anchor Points Affect Geometric Manipulations 17
Layers Can Be Manipulated in Three Dimensions 19
Layer Trees Reflect Different Aspects of the Animation State 21
The Relationship Between Layers and Views 24
Setting Up Layer Objects 26
Enabling Core Animation Support in Your App 26
Changing the Layer Object Associated with a View 27
Changing the Layer Class Used by UIView 27
Changing the Layer Class Used By NSView 28
Layer Hosting Lets You Change the Layer Object in OS X 28
Different Layer Classes Provide Specialized Behaviors 29
Providing a Layer’s Contents 30
Using an Image for the Layer’s Content 30
Using a Delegate to Provide the Layer’s Content 30
Providing Layer Content Through Subclassing 32
Tweaking the Content You Provide 33
Working with High-Resolution Images 35
2013-01-28 | Copyright © 2013 Apple Inc. All Rights Reserved.
2
Adjusting a Layer’s Visual Style and Appearance 35
Layers Have Their Own Background and Border 36
Layers Support a Corner Radius 37
Layers Support Built-In Shadows 38
Filters Add Visual Effects to OS X Views 39
The Layer Redraw Policy for OS X Views Affects Performance 40
Adding Custom Properties to a Layer 42
Printing the Contents of a Layer-Backed View 42
Animating Layer Content 43
Animating Simple Changes to a Layer’s Properties 43
Using a Keyframe Animation to Change Layer Properties 45
Specifying Keyframe Values 46
Specifying the Timing of a Keyframe Animation 46
Stopping an Explicit Animation While It Is Running 47
Animating Multiple Changes Together 48
Detecting the End of an Animation 49
How to Animate Layer-Backed Views 50
Rules for Modifying Layers in iOS 50
Rules for Modifying Layers in OS X 51
Remember to Update View Constraints as Part of Your Animation 52
Building a Layer Hierarchy 53
Arranging Layers into a Layer Hierarchy 53
Adding, Inserting, and Removing Sublayers 53
Positioning and Sizing Sublayers 54
How Layer Hierarchies Affect Animations 55
Adjusting the Layout of Your Layer Hierarchies 55
Using Constraints to Manage Your Layer Hierarchies in OS X 55
Setting Up Autoresizing Rules for Your OS X Layer Hierarchies 59
Manually Laying Out Your Layer Hierarchies 60
Sublayers and Clipping 60
Converting Coordinate Values Between Layers 61
Advanced Animation Tricks 63
Transition Animations Support Changes to Layer Visibility 63
Customizing the Timing of an Animation 65
Pausing and Resuming Animations 66
Explicit Transactions Let You Change Animation Parameters 67
Adding Perspective to Your Animations 69
2013-01-28 | Copyright © 2013 Apple Inc. All Rights Reserved.
3
Contents
Changing a Layer’s Default Behavior 70
Custom Action Objects Adopt the CAAction Protocol 70
Action Objects Must Be Installed On a Layer to Have an Effect 71
Disable Actions Temporarily Using the CATransaction Class 72
Improving Animation Performance 74
Choose the Best Redraw Policy for Your OS X Views 74
Update Layers in OS X to Optimize Your Rendering Path 74
General Tips and Tricks 75
Use Opaque Layers Whenever Possible 75
Use Simpler Paths for CAShapeLayer Objects 75
Set the Layer Contents Explicitly for Identical Layers 75
Always Set a Layer’s Size to Integral Values 76
Use Asynchronous Layer Rendering As Needed 76
Specify a Shadow Path When Adding a Shadow to Your Layer 76
Layer Style Property Animations 77
Geometry Properties 77
Background Properties 78
Layer Content 79
Sublayers Content 80
Border Attributes 81
Filters Property 82
Shadow Properties 82
Opacity Property 84
Mask Properties 84
Animatable Properties 86
CALayer Animatable Properties 86
CIFilter Animatable Properties 89
Key-Value Coding Extensions 90
Key-Value Coding Compliant Container Classes 90
Default Value Support 90
Wrapping Conventions 91
Key Path Support for Structures 92
CATransform3D Key Paths 92
CGPoint Key Paths 93
CGSize Key Paths 93
CGRect Key Paths 94
2013-01-28 | Copyright © 2013 Apple Inc. All Rights Reserved.
4
Contents
剩余96页未读,继续阅读
pinganhuang
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 2023年中国辣条食品行业创新及消费需求洞察报告.pptx
- 2023年半导体行业20强品牌.pptx
- 2023年全球电力行业评论.pptx
- 2023年全球网络安全现状-劳动力资源和网络运营的全球发展新态势.pptx
- 毕业设计-基于单片机的液体密度检测系统设计.doc
- 家用清扫机器人设计.doc
- 基于VB+数据库SQL的教师信息管理系统设计与实现 计算机专业设计范文模板参考资料.pdf
- 官塘驿林场林防火(资源监管)“空天地人”四位一体监测系统方案.doc
- 基于专利语义表征的技术预见方法及其应用.docx
- 浅谈电子商务的现状及发展趋势学习总结.doc
- 基于单片机的智能仓库温湿度控制系统 (2).pdf
- 基于SSM框架知识产权管理系统 (2).pdf
- 9年终工作总结新年计划PPT模板.pptx
- Hytera海能达CH04L01 说明书.pdf
- 数据中心运维操作标准及流程.pdf
- 报告模板 -成本分析与报告培训之三.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1