【发布时间】:2020-06-08 23:17:43
【问题描述】:
我已经以两种方式遵循this tutorial,通过实现@available 指令和删除代码/文件,但仍然显示黑屏。除非我遗漏了什么,否则我认为这两件事我都做得很好。
这是删除文件/代码方式的当前状态:
SceneDelegate.swift 已删除。
AppDelegate.swift 像这样:
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
}
最后是这样的 Info.plist:
由于程序不支持 iOS 13 之前的版本,我错过了什么,所以屏幕仍然显示为黑色?
【问题讨论】:
标签: swift xcode ios13 uiwindow