Ios Ipad和Iphone

Ios Ipad和Iphone,ios,iphone,xcode,ipad,Ios,Iphone,Xcode,Ipad,对于最新版本的IOS8,我的应用程序大部分处于纵向模式,但很少有屏幕需要用户在键盘填充的地方写入文本,我希望用户能够切换到横向模式。这怎么可能 您可以为这些特定控制器实现supportedInterfaceOrientations方法,并指定允许的方向 - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape | UIInterfaceOrientationMaskP

对于最新版本的IOS8,我的应用程序大部分处于纵向模式,但很少有屏幕需要用户在键盘填充的地方写入文本,我希望用户能够切换到横向模式。这怎么可能

您可以为这些特定控制器实现supportedInterfaceOrientations方法,并指定允许的方向

- (NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscape | UIInterfaceOrientationMaskPortrait;
}