Iphone 呈现UIInterfaceOrientation中的ModalViewController上下方向图
我想使用presentModalViewController显示一个PeoplePickerNavigationController。 但是模态控制器显示在简单的UIInterfaceOrientationGrait中,而不是倒置。所以用户必须旋转iPhone来选择联系人Iphone 呈现UIInterfaceOrientation中的ModalViewController上下方向图,iphone,cocoa-touch,Iphone,Cocoa Touch,我想使用presentModalViewController显示一个PeoplePickerNavigationController。 但是模态控制器显示在简单的UIInterfaceOrientationGrait中,而不是倒置。所以用户必须旋转iPhone来选择联系人 是否可以在UIInterfaceOrientationGraphitalUpsidedown中显示模态视图控制器?最后,我必须将ABPEOPLEPICKERNAVAGIAtionController子类化。 在我的派生类中,我
是否可以在UIInterfaceOrientationGraphitalUpsidedown中显示模态视图控制器?最后,我必须将ABPEOPLEPICKERNAVAGIAtionController子类化。 在我的派生类中,我只重写
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
并仅针对UIInterfaceOrientationGraphicalUpsideDown返回YES
设定
picker.modalPresentationStyle = UIModalPresentationCurrentContext;
在展示之前