检查一下appDelegate的方法:
这个方法一定要实现
文章不能少宇100字,对于不爱打字的程序员来说真的挺难的,发下代码对比一下吧
正确API:
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @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)
}
我用你标注的错误的的确不行,但是你标注正确的,似乎在报错啊。
头大。