Return Type of -application:didFinishLaunchingWithOptions:

前端 未结 1 1239
伪装坚强ぢ
伪装坚强ぢ 2020-12-18 17:51

When developing for iOS, the first entry point for your app is the -[AppDelegate application:didFinishLaunchingWithOptions:]. The return type of this method is

相关标签:
1条回答
  • 2020-12-18 18:22

    If there is a URL in launchOptions and you return NO, then the operating system will know that you cannot open the provided URL for some reason.

    It's not used for anything else. Since usually there is no URL in launchOptions it usually doesn't matter what you return.

    So just return YES. You can read more in the Apple documentation here.

    0 讨论(0)
提交回复
热议问题