检查一下appDelegate的方法:
这个方法一定要实现
文章不能少宇100字,对于不爱打字的程序员来说真的挺难的,发下代码对比一下吧
正确API:
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: [@escaping](/user/escaping) ([UIUserActivityRestoring]?) -> Void) -> Bool {
return WXApi.handleOpenUniversalLink(userActivity, delegate: self)
}
错误的:
func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([UIUserActivityRestoring]?) -> Void) -> Bool {
return WXApi.handleOpenUniversalLink(userActivity, delegate: self)
}