答案 0 :(得分:0)
试试这个
在您的项目上搜索YahooSession.m
现在在YahooSession.m中找到sendUserToAuthorization
并替换UIWebView
//使用UIWebView
self.rootViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
self.authorizationWebView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 60, self.rootViewController.view.frame.size.width, self.rootViewController.view.frame.size.height)];
[self.authorizationWebView setDelegate:self];
NSURLRequest *request = [NSURLRequest requestWithURL:self.authorizationUrl];
[self.authorizationWebView loadRequest:request];
[self.rootViewController.view addSubview:self.authorizationWebView];
希望这会有所帮助
答案 1 :(得分:0)
我通过在 getResponseDelay 方法(在YahooSession.m下)创建按钮并为其分配操作来获得临时解决方案,如下所示
u32
- (无效)方法 { [self.authorizationWebView removeFromSuperview];
}