我有一个始终处于纵向模式的主视图 Controller 。
然后我想呈现ModalViewController,但它将来自横向的左侧(而不是来自屏幕底部)。
可能吗?
tnx
最佳答案
在模态视图 Controller 实现中,覆盖-shouldAutorotateToInterfaceOrientation:
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
关于iphone - 在纵向 View Controller 之后呈现横向 View Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1906280/