IOS development switch page special effects

Source: Internet
Author: User
// Touch event-method called when the finger is lifted from the screen-himi-(void) cctouchesended :( nsset *) touches withevent :( uievent *) event {ccscene * scenec = [otherlayout scene]; // blog ------ // cctransitionturnofftiles * transitionscene = [cctransitionturnofftiles transitionwithduration: 3 scene: scenec]; // near-distance ----- // cctransitionshrinkgrow * transitionscene = [cctransitionshrinkgrow transitionwithduration: 3 scene: scenec]; // the left side of the other layout is displayed (the screen is shifted to the right) // transfer* transitionscene = [transfertransitionwithduration: 3 scene: scenec]; // enter the right side of another layout (the visual feeling is that the screen is moved left) // cctransitionslideinr * transitionscene = [transfertransitionwit: 3 scene: scenec]; // The other layout top-side access (visual perception is screen down) // cctransitionslideint * transitionscene = [cctransitionslideint transitionwithduration: 3 scene: scenec]; // another layout lower-side entry (visual perception is screen-up) // cctransitionslideinb * transitionscene = [cctransitionslideinb transitionwithduration: 3 scene: scenec]; // The current screen is divided into three columns, two moves down, middle move up // cctransitionsplitcols * transitionscene = [cctransitionsplitcols transitionwithduration: 3 scene: scenec]; // The current screen is divided into three columns, and the two move left, middle right shift // required * transitionscene = [audio transitionwithduration: 3 scene: scenec]; // sector conversion ----- // required * transitionscene = [audio transitionwithduration: 3 scene: scenec]; // plane rotation ----- // required * transitionscene = [cctransitionrotozoom transitionwithduration: 3 scene: scenec]; // near-far-beat ------ // required * transitionscene = [transfer transitionwithduration: 3 scene: scenec]; // stereoscopic inversion (X axis) -- (there is also a feeling from near to far, from far to near) -------- // cctransitionzoomflipx * transitionscene = [effectransitionwithduration: 3 scene: scenec]; // stereoscopic inversion (Y axis)-(there is also a feeling of going from near to far, from far to near) ------- // cctransitionzoomflipy * transitionscene = [Semi transitionwithduration: 3 scene: scenec]; // stereoscopic inversion (X, Y axis) --- (there is also a feeling of going from near to far, from far to near) ----- // cctransitionzoomflipangular * transitionscene = [effectransitionwithduration: 3 scene: scenec]; // enter the left side of the other layout to overwrite the current layout // cctransitionmoveinl * transitionscene = [cctransitionmoveinl transitionwithduration: 3 scene: scenec]; // enter the right side of another layout to overwrite the current layout // cctransitionmoveinr * transitionscene = [cctransitionmoveinr transitionwithduration: 3 scene: scenec]; // overwrite the current layout on the other layout. // cctransitionmoveint * transitionscene = [cctransitionmoveint transitionwithduration: 3 scene: scenec]; // the lower side of the layout overwrites the current layout // cctransitionmoveinb * transitionscene = [cctransitionmoveinb transitionwithduration: 3 scene: scenec]; // three-dimensional inversion (X axis) -- 2D plane inversion, no sense of distance // cctransitionflipx * transitionscene = [cctransitionflipx transitionwithduration: 3 scene: scenec]; // three-dimensional inversion (Y axis) -- 2D plane inversion, no sense of distance // cctransitionflipy * transitionscene = [cctransitionflipy transitionwithduration: 3 scene: scenec]; // three-dimensional inversion (X, Y axis) -- 2D plane inversion, no sense of distance // cctransitionflipangular * transitionscene = [cctransitionflipangular transitionwithduration: 3 scene: scenec]; // entity-transparent-entity (color-included by default) // cctransitionfade * transitionscene = [cctransitionfade transitionwithduration: 3 scene: scenec withcolor: ccwhite]; // another direct gradient will overwrite the current layout // transfer* transitionscene = [upload progress: 3 scene: scenec]; // move (grid-like) blog, from bottom left to top right // cctransitionfadetr * transitionscene = [cctransitionfadetr transitionwithduration: 3 scene: scenec]; // move (grid-like) the groove, from top right to bottom left cctransitionfadebl * transitionscene = [cctransitionfadebl transitionwithduration: 3 scene: scenec]; // move (long rectangle, width is screen width) blog, from bottom up // cctransitionfadeup * transitionscene = [cctransitionfadeup transitionwithduration: 3 scene: scenec]; // move (long rectangle, width is screen width) blog, from top down // cctransitionfadedown * transitionscene = [cctransitionfadedown transitionwithduration: 3 scene: scenec]; [[ccdirector shareddirerepl] replacescene: transitionscene];

Related Article

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.