IOS Weibo登录问题

phytin phytin 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
MainPage:
WeiboLoginViewController* weibologin=[[WeiboLoginViewController alloc]init];

[self presentViewController:weibologin animated:NO completion:^{ }];

WeiboLogin:
-(void)click
{
WBAuthorizeRequest *request = [WBAuthorizeRequest request];
request.redirectURI = kRedirectURI;
request.scope = @"all";
request.userInfo = @{@"SSO_From": @"SendMessageToWeiboViewController",
@"Other_Info_1": [NSNumber numberWithInt:123],
@"Other_Info_2": @[@"obj1", @"obj2"],
@"Other_Info_3": @{@"key1": @"obj1", @"key2": @"obj2"}};
[WeiboSDK sendRequest:request];
}

在MainPage页面,运行click方法,可以弹出微博登录页面,
但如果用presentViewController方法跳到weiboLogin页面,再运行click方法,就弹不出微博登录页面,没有反应?
求解答。
self.window.rootViewController=[[MainPageViewController alloc]init];
MainPage是直接在开始页面进入的。
...全文
评论 7
收藏 已收藏
分享
返回顶部
phytin
iOS 29,037 成员 12,459 内容