Ios8 有没有办法在Xcode 6.1中锁定模拟器的方向

Ios8 有没有办法在Xcode 6.1中锁定模拟器的方向,ios8,uiinterfaceorientation,xcode6.1,xcode-6.2,Ios8,Uiinterfaceorientation,Xcode6.1,Xcode 6.2,出于某种奇怪的原因,模拟器/设备不会改变我的应用程序的方向。我的代码没有被弃用,据在Xcode 6.2上使用它的人说,他们说它是有效的。但是,对于我的iOS 8模拟器和设备,它不会旋转。我只使用纵向和上下方向。我在info.plist和deployment info中拥有它应该拥有的一切 Xcode 6.1上是否有一个我可能无意中点击的按钮来锁定模拟器/设备的方向 -(NSUInteger)supportedInterfaceOrientations { return (UIInterface

出于某种奇怪的原因,模拟器/设备不会改变我的应用程序的方向。我的代码没有被弃用,据在Xcode 6.2上使用它的人说,他们说它是有效的。但是,对于我的iOS 8模拟器和设备,它不会旋转。我只使用纵向和上下方向。我在info.plist和deployment info中拥有它应该拥有的一切

Xcode 6.1上是否有一个我可能无意中点击的按钮来锁定模拟器/设备的方向

-(NSUInteger)supportedInterfaceOrientations {

return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);

}
//在appdelegate.m中

CGSize iosScreenSize = [[UIScreen mainScreen] bounds].size;

if (iosScreenSize.height == 667) {

    UIStoryboard *iPhone6 = [UIStoryboard storyboardWithName:@"iPhone6" bundle:nil];

    UIViewController *initialViewController =[iPhone6 instantiateInitialViewController];

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]bounds]];

    self.window.rootViewController = initialViewController;

    [self.window makeKeyAndVisible];
}

你好,又是杰特。。。也许这有助于我发现我的问题,是我在AppDelegate.m中的代码导致设备定向代码无法工作。在AppDelegate.m中,我使用代码将iPhone5安装到iPhone6中,并且该代码阻止了倒置的设备方向。你知道如何让设备定位代码与AppDelegate.m中的代码一起工作吗?也许你和我在应用程序中遇到的问题一样。我的情况是使用UIImagePicker,该对象必须具有纵向,但我的应用程序只允许横向。所以,我必须检测更改为纵向的确切时间,并在AppDelegate中检测更改原始横向以进行方向检索。我问了一个关于堆栈溢出的问题。问题的标题在上面。它描述了我的问题。-NSIntegerApplication:UIApplication应用程序支持InterfaceOrientionsForWindow:UIWindow*窗口{pragma未使用的应用程序,如果允许,则窗口==是{graphicalow=NO;if UI\u USER\u INTERFACE\u惯用语==UIUserInterfaceIdiomPad return UIInterfaceOrientationMaskAll;else/iphone*/return UIInterfaceOrientationMaskAllButUpsideDown;}else{return UIInterfaceOrientationMaskalandscape;}