IOS Coreanimate Animation implementation

Source: Internet
Author: User

The main point here is to use coreanimate to achieve the desired animation. First Officer Net Introduction: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/ introduction/introduction.html Introduction Some, you can set the layer's movement, size, three-dimensional position, transparency, rounded corners, background color. iOS and OSX are not the same, the official website is just a brief introduction, there are not too many practical examples. Key words: UIView Animation, Quartzcore, Caanimation, Uibezierpath, Cgaxxx, Cadisplaylink, UIKit Dynamic (Uidynamics, Uisnapbehavior), Caemitter, pop about the dynamic in Uikit is actually adding a simplified version of the 2D animation engine to the app. There is no good introduction, online can easily find a lot of examples of tutorials. It is nothing but gravity, collision, vibration and other physical characteristics of encapsulation, not randomness, the use is very simple. is another engine frame that is separate from each other. Pop Library, Facebook's open source animation engine, is said to be more efficient, not tested, not misleading, directly on the link: https://github.com/facebook/popthen discuss the core animation class architecture diagram:Caemitter??? Self-bringing particle emission effect, do a flame? Mist? It doesn't seem to be a good chance. Online is also a lot of demo, very easy to find. Quartzcore is actually the framework name of the core animation. While core animation is a top citizen in the framework, in the media layer, we use the calayer is from the quartz framework, the system has a large number of packages, various graphics, for developers to quickly develop. Instead of using OpenGL ES here the more underlying stuff. After all, it is not game development, just app, the cost of learning will not be too high.In fact, in most cases, caanimation is able to meet demand. is to redraw, refresh the view, or draw a variety of shapes directly using Bezier curves. (Uibezierpath)Practical Application Example: Http://kittenyang.com/drawablebubble/qq message bubbles. Principle: Constantly respond to the potential click events, using Bezier curves to continuously redraw the graphics. There are other simple examples that can be quickly viewed on many websites. Here by the way: Cadisplaylink principle, is to add a function to the process of the runloop, each time Runloop execution will execute the SEL, you can set the frequency. Note that, since it is the system of Runloop, then we should use caution, if a lot of operations added? The software will definitely get stuck, use caution. In fact, when I developed it myself, I used most of my own view Animation, very simple and generous code. The spring function comes with a very simple use. I often use it for various view switches, as well as various buttons to move animation effects. In fact, there are very few apps to use a lot of animation, the use of good words can make apps more advanced, the experience is very different. For example, a lot of people recently used the Gilava movie app, some of the effects are very good, such as film introduction page, custom view switch, choose button design, not card tableview (round button and other optimization processing, can be through the core of Xcode Animate test tools to look out), very attentive to the application. But, still feel a bit disorderly. The animation is still a little bit more. Make the entire app look, not concise, clean. (Compare most apps on the market). Incidentally, the animation of that kind of picture, generally is +size+pos+bezierpath to deal with, is not troublesome.speaking of which, the app animation is finished, in fact, there is not much content.   Excerpt from the last book suggested in Coreanimation: animation is just a small part of coreanimate. That's really true.

IOS Coreanimate Animation implementation

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.