Motion Design for IOS (16)

Source: Internet
Author: User

Core Animation is an animated and graphical compositing framework for speed and efficiency. Although there are animated words in the name, don't let it mislead you into thinking that it can only do this; it is actually responsible for the overall rendering architecture of all views displayed on the screen, allowing for very fast transparency calculations, image filtering, and visual effects. It is created for iOS, but it can also be applied on Mac, starting with OS X10.5.

To render image content on the screen through GPU management, Core animation uses CALayer objects as the main force. CALayerresponsible for the interface rendering, in fact, the UIView object is simply CALayer encapsulated, while core animation is originally named Layer kit! inside Apple. When you manipulate a UIView layout or direction on the screen, you are actually moving it CALayer . Core Animation manages compositing and manipulating the interface content of your app on a hardware level, conversations with graphics cards and streamlines your rendering of your interface, making it fast and not slow. All of the animation performance in iOS is implemented by the core animation framework.

Layers can be hierarchically arranged like a view to create a complete user interface on the screen. Instead of using objects to UIView build your interface, you can use CALayer objects instead, like a view, to place them in the parent view-child view type, except to replace it with a parent layer-sublayer.

While you can simply CALayer implement an app's interface with no view, most iOS developers will still use UIView objects instead of using CALayer objects directly to build the app interface, unless they are doing some serious graphics processing or a one-time layout of hundreds or thousands of graphics. If you need to change the properties of a layer directly, you can get a view of the layer at any time, for example, setting the fillet radian of a view is done by manipulating the view's CALayer properties.

Finished viewing the integration set: Https://github.com/Cloudox/Motion-Design-for-iOS
All rights reserved: Http://blog.csdn.net/cloudox_

Motion Design for IOS (16)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.