我尝试在 didFinishLaunchingWithOptions 方法中返回 false,但没有任何反应,我的应用程序成功运行,任何人都可以告诉我为什么这个东西有效,以及这里有什么区别(true/false)。
最佳答案
它不会确定应用程序是否启动,只是确定它是否可以处理“选项
”。
Return Value
false
if the app cannot handle theURL
resource or continue a user activity, otherwise returntrue
. The return value is ignored if the app is launched as a result of a remote notification.Ref: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1622921-application
关于ios - 如果我在 didFinishLaunchingWithOptions 中返回 false 会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56232724/