我正在为 iPad 开发一个应用程序(鼓机),我有一个用户界面的草稿。iOS 6.1模拟器界面OK:
但它在 iOS 5.1 模拟器中转了 90°:
这就是我调用视图的方式(在 stackoverflow 成员的帮助下)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.viewController = [[XDrumViewController alloc] initWithNibName:@"XDrumViewController" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
如何解决?