我有試過的iPad應用橫向如此做的info.plist一些變化在iPad中開始橫向導航?
AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
CGRect screenBound = [[UIScreen mainScreen] bounds];
NSLog(@"screenBound:%@",NSStringFromCGRect(screenBound));
return YES;
}
然後我得到的CGRect屏幕分辨率爲screenBound:{{0 ,0},{768,1024}} 但我想{{0,0},{1024,768}},如何做到這一點?請幫我提前