iOS 微博第三方登录的简单实现 【存在登陆问题】
http://blog.csdn.net/japhoo/article/details/51198479
// 9.0 后才生效
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options{
return [WeiboSDK handleOpenURL:url delegate:self];
}
#pragma mark 9.0之前
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{
return [WeiboSDK handleOpenURL:url delegate:self];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(nullable NSString *)sourceApplication annotation:(id)annotation{ return [WeiboSDK handleOpenURL:url delegate:self];
}
http://blog.csdn.net/zhonggaorong/article/details/51724810
注:
好了,这个坑纠结很久,终于可以运行了,打开都正常,点击新浪登录,理论上直接弹出提示:应用想打开微博,下面可以选取取消、确定
但实际上是跳刀了网页登录,并没有sso打开微博APP,并且打印一大堆日志,错误如下:
<string>sinaweibo</string>
<string>weibosdk</string>
<string>sinaweibohd</string>
<string>weibosdk2.5</string>
http://www.cnblogs.com/yajunLi/archive/2016/04/06/5359946.html