1.下载SDK
https://wiki.open.qq.com/index.php?title=mobile/SDK下载&oldid=47694
2.导入工程
3.添加framework
4.加入白名单,把demo中info.plist中的LSApplicationQueriesSchemes添加到工程中的info.plist
5.导入头文件进行授权
6.登录 服从代理,系统没有QQ的情况下执行
- (void)thirdQQLogin{
//跳转QQ第三方登录页面
//没有QQ的情况下
self.oauth = [[TencentOAuth alloc] initWithAppId:@"1108995429" andDelegate:self];
NSMutableArray *permissions = [[NSMutableArray alloc] initWithObjects:kOPEN_PERMISSION_GET_USER_INFO, nil