I upgrade to ios 9 and xcode 7 (from xcode 6.2) and now this happens when I start my app:
There is now all this black bars above and below.
My appDelegate is like so:
- (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];
_startViewController = [[StartViewController alloc] init];
_startNavigationController = [[StartNavigationController alloc] initWithRootViewController:_startViewController];
self.window.rootViewController = _startNavigationController;
[self.window makeKeyAndVisible];
// Need to fix this since deprecated
// [application prefersStatusBarHidden:NO];
// [application preferredS :UIStatusBarStyleDefault];
// [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
return YES;
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…