Hi,
I have a main viewController that is in portrait mode all the time.
I want then to presentModalViewController, but it will come from the left (not from bottom of the screen) in landscape.
Is it possible?
tnx
Hi,
I have a main viewController that is in portrait mode all the time.
I want then to presentModalViewController, but it will come from the left (not from bottom of the screen) in landscape.
Is it possible?
tnx
In your modal view controller implementation, override -shouldAutorotateToInterfaceOrientation:
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
i came across this problem too. so i just used the modaltransitionstyle so it didn't look to iffy.
hope this helps.
viewController.modalTransitionStyle = modaltransitionstyle;
[self prensentmodal... animated...yes];