我有一个主视图控制器,它始终处于纵向模式。
我想要presentModalViewController,但是它将从左侧进入(而不是从屏幕底部)并呈现横向模式。
这可能吗?
谢谢
我有一个主视图控制器,它始终处于纵向模式。
我想要presentModalViewController,但是它将从左侧进入(而不是从屏幕底部)并呈现横向模式。
这可能吗?
谢谢
-shouldAutorotateToInterfaceOrientation:
方法。- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
UIInterfaceOrientationLandscape
吗? - Alex ReynoldsviewController.modalTransitionStyle = *modaltransitionstyle*;
[self presentModalViewController:viewController animated:YES];