最近在 Xcode 8 beta 6 (8S201h) 中,这已经成为一个问题。
UIApplicationLaunchOptionsShortcutItemKey
这是错误:
还有谁有相同的问题吗?
var performShortcutDelegate = true
if let shortcutItem = launchOptions[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem {
print("ok")
self.shortcutItem = shortcutItem
performShortcutDelegate = false
}
return performShortcutDelegate