Xcode 如何阻止iPad PRO模拟器使用iPad Air 2模拟器
我在Xcode中使用Objective-C。在Xcode 7.1中,我创建了一个新的iPadPRO.h和iPadPRO.m文件以及iPadPRO.storyboard。我将identity inspector中的故事板类与相应的.h和.m文件连接起来。我不使用此应用程序的自动布局/大小类 在AppDelegate.m中,我使用Xcode 如何阻止iPad PRO模拟器使用iPad Air 2模拟器,xcode,ipad,ios-simulator,appdelegate,uiscreen,Xcode,Ipad,Ios Simulator,Appdelegate,Uiscreen,我在Xcode中使用Objective-C。在Xcode 7.1中,我创建了一个新的iPadPRO.h和iPadPRO.m文件以及iPadPRO.storyboard。我将identity inspector中的故事板类与相应的.h和.m文件连接起来。我不使用此应用程序的自动布局/大小类 在AppDelegate.m中,我使用 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { if ([[UIS
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2)
{
UIStoryboard *Retina = [UIStoryboard storyboardWithName:@"Retina" bundle:nil];
UIViewController *initialViewController =[Retina instantiateInitialViewController];
self.window.rootViewController = initialViewController;
[self.window makeKeyAndVisible];
}
}
是否有一个单独的代码或以上代码的补充,我可以使用,这样iPad PRO模拟器不使用拉伸的iPad Air 2代码/图像,而是使用我将为其创建的自己的代码/图像