调用OpenUrl方法而不是continueUserActivity

时间:2018-07-24 11:59:28

标签: ios deeplink

当用户单击通用链接时,将调用此方法:

- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation { }

但是根据苹果的文档,它应该被称为:

- (BOOL)application:(UIApplication *)application 
continueUserActivity:(NSUserActivity *)userActivity 
 restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler { }

可能是什么原因?

0 个答案:

没有答案