Overview
Important: This is a preliminary document for an API or technology in development. Although this document has been reviewed for technical accuracy, it is not final. This Apple confidential information is for use only by registered members of the applicable Apple Developer program. Apple is supplying this confidential information to help you plan for the adoption of the technologies and programming interfaces described herein. This information is subject to change, and software implemented according to this document should be tested with final operating system software and final documentation. Newer versions of this document may be provided with future seeds of the API or technology
这是一个为开发技术编写的初步的文档,虽然这片文章为保证技术的准确性而审核过,但是他不是最终版本。苹果的机密信息,仅仅为注册苹果开发者的人使用。苹果提供这些机密信息帮助你计划接受苹果的技术和编程界面大纲。。。。。新的版本可能会提供新的api和技术
The CALayer class manages image-based content and allows you to perform animations on that content. Layers are often used to provide the backing store for views but can also be used without a view to display content. A layer’s main job is to manage the visual content that you provide but the layer itself has visual attributes that can be set, such as a background color, border, and shadow. In addition to managing visual content, the layer also maintains information about the geometry of its content (such as its position, size, and transform) that is used to present that content onscreen. Modifying the properties of the layer is how you initiate animations on the layer’s content or geometry. A layer object encapsulates the duration and pacing of a layer and its animations by adopting the CAMediaTiming protocol, which defines the layer’s timing information.
这个类管理图片内容,允许你去管理内容的动画。图层经常用来存储视图,但是也可以在没有view的情况下展示视图。图层的主要工作是管理你提供的可视内容,但是图层本身有可以设置的可视属性,例如 背景色,边框,阴影。另外:为啦管理可视化视图,图层也保存啦其内容的几何信息例如:坐标,大小,旋转度等那些经常在屏幕上展示的内容。如何修改他的属性取决于你怎样初始化图层的内容和几何信息。图层对象实现啦CAMediaTiming 协议(定义啦图层的时间信息),来封装延时和放置图层和动画。
If the layer object was created by a view, the view typically assigns itself as the layer’s delegate automatically, and you should not change that relationship. For layers you create yourself, you can assign a delegate object and use that object to provide the contents of the layer dynamically and perform other tasks. A layer may also have a layout manager object (assigned to the layoutManager property) to manage the layout of subviews separately.
如果图层对象是被视图创建的,视图和自动的将图层设置成为图层的回调。并且你也不应该改变那个关系。因为你自己建立的那个图层,你可以设置代理和使用图层对象提供自己的内容和执行其他的任务。一个图层对象也可以有自动布局属性,去管理添加在他上面的子视图。
The CAGradientLayer class draws a color gradient over its background color, filling the shape of the layer (including rounded corners)
梯度颜色图层在背景色的基础上画啦一个梯度颜色,用来填充图层;
gradient ['greɪdɪənt]
基本释义
- n. [数][物] 梯度;坡度;倾斜度
- adj. 倾斜的;步行的
同近义词
- n. [数][物]梯度;坡度;[建]倾斜度
obliquity, lean
-
需要学习的单词:
preliminary
confidential [kɒnfɪ'denʃ(ə)l]
基本释义- adj. 机密的;表示信任的;获信任
- adoption [ə'dɒpʃ(ə)n]
- n. 采用;收养;接受
- n. 采用;收养;接受
- acceptance, introduction, receiving
- adoption [ə'dɒpʃ(ə)n]
- n. 采用;收养;接受
- n. 采用;收养;接受
- acceptance, introduction, receiving
-
maintains [meɪn'teɪn; mən'teɪn]
基本释义
- vt. 维持;继续;维修;主张;供养
-
geometry [dʒɪ'ɒmɪtrɪ]
基本释义
- n. 几何学
- 几何结构
-
encapsulates [ɪn'kæpsjʊleɪt; en-]
基本释义
- vt. 压缩;将…装入胶囊;将…封进内部
- vi. 形成胶囊