答案 0 :(得分:0)
尝试阅读此代码:here
除了这一点,请阅读它的工作原理:http://blog.originate.com/blog/2014/04/22/deeplinking-in-ios/
答案 1 :(得分:0)
如果您可以继续,请尝试以下方法并进行更新。
- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray * _Nullable))restorationHandler {
if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb])
{
NSURL *webUrl = userActivity.webpageURL;
// Extract details from url and act accordingly, like redirection to screens etc.
}
return YES;
}