0

Usually we always push from one view to another view using the following method:

[self.navigationController pushViewController:nextView animated:YES];

for some other animations we used :UIViewAnimationTransitionCurlDown / flipRight etc etc..

All these are regular in use,

But i want my app with different transitions..

Any other custom transitions / special effects in transitions.. (Push/pop) or any other External api's for Animations..

1

1 Answer 1

7

You could use the CATransition:

CATransition *transition = [CATransition animation];
transition.duration = 1.0;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromTop;
transition.delegate = self;
[self.navigationController.view.layer addAnimation:transition forKey:nil];

[self.navigationController pushViewController:nextView animated:YES];

You can change the transition by: transition.subtype = kCATransitionFromTop;

Don't forget to add the Quartzcore framework!

1

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.