Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- {
- // Override point for customization after application launch.
- // Add the split view controller's view to the window and display.
- self.window.rootViewController = self.splitViewController;
- IntroViewController *temp = [[IntroViewController alloc] initWithNibName:@"IntroViewController" bundle:nil];
- /*
- UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait,
- UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
- UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeLeft,
- UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeRight
- */
- if([UIApplication sharedApplication].statusBarOrientation == UIDeviceOrientationPortrait ||
- [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown)
- {
- NSLog(@"port");
- [temp setIsPort:YES];
- }
- else if([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationLandscapeLeft ||
- [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationLandscapeRight)
- {
- NSLog(@"land");
- [temp setIsPort:NO];
- }
- [self.window addSubview:temp.view];
- [self.window makeKeyAndVisible];
- return YES;
- }
Add Comment
Please, Sign In to add comment