1
我在Xcode的应用程序,我想开始没有故事板,所以我创建了AppDelegate的一个新窗口:的AppDelegate窗口初始化没有正确的尺寸
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let InitialViewController: SignViewController = SignViewController()
let NavigationController: UINavigationController = UINavigationController(rootViewController: InitialViewController)
self.window = UIWindow(frame: UIScreen.main.bounds)
self.window!.rootViewController = NavigationController
self.window!.makeKeyAndVisible()
return true
}
这样做的问题是,如果我模拟它返回一个奇怪的看着屏幕,这似乎是小y轴上的,我不知道为什么:
谁能告诉我什么,我需要改变吗?
是的,这是什么,谢谢 – Luis