我使用FB圖形api將我的ios應用程序與facebook集成。但當登錄 webview彈出時,第一個問題是它沒有取消按鈕 仍然我已經把按鈕應用一個動作,但無法從我來的地方進入該屏幕。用於facebook的FB圖形API認證
NSString *url_string = [NSString stringWithFormat:@"https://graph.facebook.com/oauth/authorize?client_id=%@&redirect_uri=%@&scope=%@&type=user_agent&display=touch", facebookClientID, redirectUri, extended_permissions];
NSURL *url = [NSURL URLWithString:url_string];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
CGRect webFrame = [super_view frame];
webFrame.origin.y = 0;
UIWebView *aWebView = [[UIWebView alloc] initWithFrame:webFrame];
[aWebView setDelegate:self];
self.webView = aWebView;
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.frame = CGRectMake(5.0, 10, 150.0, 30.0);
[button setTitle:@"My Button" forState:UIControlStateNormal];
[button addTarget:self action:@selector(myAction:) forControlEvents:UIControlEventTouchUpInside];
[self.webView addSubview:button];
[aWebView release];
[webView loadRequest:request];
[super_view addSubview:webView];
所以我怎麼能回遷請一些身體幫我.....
你的'myAction:'方法是什麼樣的? – skram
myAction:在這個動作中,我只是想從我的前面去看 –