Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try this: </p> <pre><code>- (IBAction)ClickMe:(id)sender { RegistraionViewController *secondController = [[RegistraionViewController alloc] init]; [self.navigationController pushViewController:secondController animated:YES]; } - (IBAction) Click:(id)sender { [self.navigationController popViewControllerAnimated:YES]; } </code></pre> <p><strong>Edit:</strong><br> I'm sorry. If you want custom some UIViewController transitions animation, see below:<br> <a href="https://stackoverflow.com/questions/11363337/uiviewcontroller-transition-objective-c">UIViewController transition - objective-c</a><br> <a href="http://www.teehanlax.com/blog/custom-uiviewcontroller-transitions/" rel="nofollow noreferrer">http://www.teehanlax.com/blog/custom-uiviewcontroller-transitions/</a><br> Or you can try this: </p> <pre><code>- (IBAction)ClickMe:(id)sender { RegistraionViewController *secondController = [[RegistraionViewController alloc] init]; CATransition *transitionAnimation = [CATransition animation]; [transitionAnimation setDuration:1]; [transitionAnimation setType:@"push"]; [transitionAnimation setSubtype:kCATransitionFromBottom]; [transitionAnimation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]]; [self.navigationController.view.layer addAnimation:transitionAnimation forKey:nil]; [self.navigationController pushViewController:secondController animated:NO]; } - (IBAction)Click:(id)sender { CRViewController *secondController = [[CRViewController alloc] init]; CATransition *transitionAnimation = [CATransition animation]; [transitionAnimation setDuration:1]; [transitionAnimation setType:@"push"]; [transitionAnimation setSubtype:kCATransitionFromTop]; [transitionAnimation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]]; [self.navigationController.view.layer addAnimation:transitionAnimation forKey:nil]; [self.navigationController popToViewController:secondController animated:NO]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload