UI-View controller Jump Another view controller effect summary

Source: Internet
Author: User

1. The way to jump from one view controller to another is to set the

Catransition *animation = [[Catransition alloc]init];

Animation.duration = 1;

Animation.type = @ "Pagecurl"; Cube Rollover Effect

Animation.subtype = @ "Frombottom"; Start at the bottom

[Self.view.window.layer addanimation:animation Forkey:nil];

If you encapsulate the extension method, you can call the method directly instead of the top 5 rows

[Self.view.superview addtansitionanimationtype:transtiontypecube duration:1 Direction: Transitiondirectionfrombottom];

1.1 Transition Effect

Fade//Crossfade Transitions (transition direction not supported)

Push//New view roll out the old view

Movein//New view above the old view

Reveal//Move the old view away to show the new view below

Cube//Cube Rollover effect

Oglflip//Upper and lower left and right rollover effect

Suckeffect//shrinkage effect, such as a piece of cloth is pumped away (not support transition direction)

Rippleeffect//Drip effect (transition direction not supported)

Pagecurl//Page UP effect

Pageuncurl//Page DOWN effect

Camerairishollowopen//Camera lens open effect (transition direction not supported)

Camerairishollowclose//Camera lens Close effect (no transition direction is supported)

1.2 Flip Direction

Fromleft//From left

Fromright//From the right

Fromtop//From top

Frombottom//From bottom

In the use of the process, for the convenience of the UIView, we can extend the class, the use of flip effect encapsulated as enumeration constants, convenient for us to quickly find, call the appropriate method can be quickly set

If the calling method is:

-(void) Addtansitionanimationtype: (transtiontype) Type duration: (nstimeinterval) Duration direction: ( transitiondirection) direction;

Class Extension Example: see-Uiviewanimation

UI-View controller Jump Another view controller effect summary

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.