Basic animation and core animation navigation

Source: Internet
Author: User
1 uiview Animation

[Uiview beginanimations: @ "curl" context: Nil]; // starts the animation.
[Uiview setanimationduration: 0.75];
[Uiview setanimationdelegate: Self];
[Uiview setanimationtransition: uiviewanimationtransitioncurlup forview: View cache: Yes];
[View removefromsuperview];
[Uiview commitanimations];

2 catransition layer Animation


Catransition * animation = [catransition animation]; [animation setduration: 1.25f];
[Animation settimingfunction: [camediatimingfunction functionwithname: kcamediatimingfunctioneasein];
[Animation settype: kcatransitionreveal];
[Animation setsubtype: kcatransitionfrombottom];
[Self. View. layer addanimation: animation forkey: @ "reveal"];


The settype and setsubtype combinations are used here, which is relatively safe, because their parameters are defined in the official API. Their parameter descriptions can be referred to below:

[Animation settype: @ "suckeffect"];
Suckeffect here is the name of the effect. The following effects can be used:
Pagecurl page up
Pageuncurl flip down one page
Rippleeffect dripping Effect
 
Suckeffect contraction effect, such as a piece of cloth being extracted
Cube Effect
Oglflip flip up and down


3. Core Animation

Http://blog.csdn.net/dztianyu/article/details/13776043


Foldlayer = [catransformlayerlayer]; foldlayer. anchorpoint = cgpointmake (1.0f, 0.5f); foldlayer. zposition = 0; foldlayer. frame = cgrectmake (0, 0, width/2, height); [foldlayeraddsublayer: currentleftlayer]; [zheyelayeraddsublayer: foldlayer]; catransform3d endtransform = complete; endtransform. m34 = 1.0f/2500.f; endtransform = catransform3drotate (endtransform, cosa, 0.0, 1.0, 0.0); foldlayer. transform = endtransform;

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.