且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

首次通过URL Scheme打开iOS应用程序时崩溃

更新时间:2023-01-01 16:21:55

好吧,我修好了!我只需要在我的AppDelegate didFinishLaunchingWithOptions方法中检查以下情况。

Well, I fixed it! I just had to check for the following case in my AppDelegate didFinishLaunchingWithOptions method.

 func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

            if ((launchOptions) != nil) {

                if ((launchOptions?[UIApplicationLaunchOptionsURLKey]) != nil){


                }

感谢您的支持!