[我正在创建一个没有滑板的应用程序,删除了情节提要文件,该应用程序运行良好,但是模拟器的输出已关闭,以某种方式我无法使用iPhone的全屏。
附有图片,缺少顶部和底部。
Iphone simulator example where top and bot is blank
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions){
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = myViewController
window?.makeKeyAndVisible()
window?.windowScene = windowScene
}
这里缺少什么?非常感谢您的帮助!
删除LaunchScreen.Storyboard文件时遇到了相同的问题。现在,系统似乎不确定屏幕大小,因此出现了问题。如果已将其删除,请尝试添加LaunchScreen.Storyboard。