【iOS】當我們在application:DidFinishLaunchWithOptions:中返回NO時會發生什麼

huangruiz1發表於2020-10-19

先給出官方文件解釋

The return result from this application:didFinishLaunchingWithOptions: is combined with the return result from the application:willFinishLaunchingWithOptions: method to determine if a URL should be handled. If either method returns NO, the URL is not handled. If you do not implement one of the methods, only the return value of the implemented method is considered.

其中 determine if a URL should be handled 代表著 application:openURL:options: 方法是否執行

return YES 時執行,return NO 時不執行

相關文章