- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary*)options
{
NSLog(@"\topenURL = %@",url);
return [WXApi handleOpenURL:url delegate:self];
}
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
NSLog(@"\thandleOpenURL = %@",url);
return [WXApi handleOpenURL:url delegate:self];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
NSLog(@"\thandleOpenURL = %@",url);
return [WXApi handleOpenURL:url delegate:self];
}
iOS 9 以后一定要实现这三个方法才能收到微信回调函数的回调
其实只要实现上面第一个方法,就能收到微信支付的回调了
如果集成了shareSDK的话。需要在注册微信类的后面如[WxApi Class]deleget:self] 他官方的demo是没有这句话的。