我没有为我的 iOS 应用程序使用 Storyboard。我已经手动创建 UIViewController 并从 AppDelegate 调用。以下是 我在 AppDelegate 中使用的代码结构。你能建议一下吗 我为什么应用程序在导航栏上方显示黑色空间,但在 iPhone 中除外 4S 模拟器。下面我附上了我的问题的截图。
登录 View *登录 View ; UINavigationController *myNav ;
loginView = [[LoginView alloc] initWithNibName:@"LoginView"bundle:nil];
myNav= [[UINavigationController alloc] nitWithRootViewController:loginView];
self.window.rootViewController = myNav; [self.window makeKeyAndVisible];
最佳答案
为 iPhone 5 及更高版本添加启动图像。 或者您可以包含 LaunchScreen xib/storyboard。
关于ios - 导航栏上方显示的黑色空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37734532/