[Code Note] Jump between pages, code note page Jump

Source: Internet
Author: User

[Code Note] Jump between pages, code note page Jump

1. Engineering Drawing.

Ii. Code.

RootViewController. m

-(Void) touchesBegan :( NSSet *) touches withEvent :( UIEvent *) event {/* 1. If the animation UIViewAnimationTransitionNone 2 is not used, the page is rotated from left to right to uiviewanimationtransitionflipfro, rotate pages from the right to the left, opposite to UIViewAnimationTransitionFlipFromLeft, UIViewAnimationTransitionFlipFromRight 4, curl pages, from the bottom up UIViewAnimationTransitionCurlUp 5, curl pages, UIViewAnimationTransitionCurlDown */FirstViewController * firstVC = [[FirstViewController alloc] init]; [UIView beginAnimations: nil context: NULL]; // set the animation attribute variation curve in the animation block [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut]; // set the duration [UIView setAnimationDuration: 0.5]; // set the animated Effect of transition [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView: self. navigationController. view cache: NO]; [self. navigationController pushViewController: firstVC animated: YES]; // submit the animation [UIView commitAnimations];}

 

 

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.