Skip to content

Instantly share code, notes, and snippets.

@jdg
Created July 4, 2009 18:26
Show Gist options
  • Save jdg/140654 to your computer and use it in GitHub Desktop.
Save jdg/140654 to your computer and use it in GitHub Desktop.
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
navigationType:(UIWebViewNavigationType)navigationType {
NSLog(@"webView requested: %@ - %@", request, [[request URL] host]);
NSURL *requestUrl = [request URL];
if ([[requestUrl host] isEqualToString:OAUTH_REDIRECT_TRIGGER]) {
[self completeAccessTokenRequest];
}
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment