I have a UIView with a button on it, when the user clicks that button I have another xib file that I want to push. Now this view doesn’t have a navigationcontroller so I create one dynamically like so :
myVC *viewController = [[myVC alloc] init];
UINavigationController *controller = [[UINavigationController alloc]
initWithRootViewController:viewController];
[self presentModalViewController: controller animated: YES];
But this is modal, how can I have myV be pushed from the right?
Thanks.
Try this following format. This will help you.
This code is used to flip the new view controller horizondally.
Please refer “UIModalTransitionStyle”.