这里需要添加对应 字段,其次需要后台去完成回调URL,并在程序里配置回调URL,需要在appdelegate 按文档对应添加 回调方法
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [WXApi handleOpenURL:url delegate:self]||[WeiboSDK handleOpenURL:url delegate:self];;
}
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
return [WXApi handleOpenURL:url delegate:self]||[WeiboSDK handleOpenURL:url delegate:self];;
}
这两个方法里添加对应的回调 我这里是微信和微博的回调