1

在我的 iphone 应用程序中,我使用 Google Plus SDK 登录我的应用程序登录页面,以允许用户使用 google plus 登录。但是当用户在另一个视图控制器及when user is pressed button(Called Add on Google Plus) then i am opening UIWebView for searching people on google plus as以下时:

NSString *url_string =[NSString stringWithFormat:@"https://plus.google.com/u/0/s/%@/people",self.selectedMatch.realName];
NSString *urlEscaped = [url_string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
UIViewController *webViewController = [[UIViewController alloc]init];
UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0,0,320,480)];
webView.scalesPageToFit= YES;
NSURL *nsurl = [NSURL URLWithString:urlEscaped];
NSURLRequest *nsrequest = [NSURLRequest requestWithURL:nsurl];
[webView loadRequest:nsrequest];
[webViewController.view addSubview:webView];
[self.navigationController pushViewController:webViewController animated:YES];

但是当这个webView 打开时,用户就不再登录了Web view is asking again to sign in to user.Any one know how to Logged in user in UIWebView.任何帮助将不胜感激。

4

0 回答 0