I am using ViewControllers for my different views, this is currently how I am switching from page to page:
- (IBAction)switchToSecondPage:(id)sender
{
SecondPage * secondPage = [[SecondPage alloc] initWithNibName:nil bundle:nil];
[self presentViewController: secondPage animated:YES completion:NULL];
}
This is the typical new view coming up from the bottom of the screen. I can use this to change the transition style, but I only get a couple choices to chose from, and none of them are any good.
secondPage.modalTransitionStyle = UIModalTransitionStylePartialCurl;
I am looking for transitions that are similar to the original one you get (page slides up from bottom). So I want ‘slides down from top’ and ‘slides from left/right’. Is there any way I can do this. I see all sorts of applications doing this but I haven’t been successful in finding anything.
One way to do this is,
Another way to do is by using this.
TransitionControlleris custom implementation which helps to do this. In case you are facing issue with above code, use the category methods in this implementation. There are methods such as,which can be used to achieve this.