Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "FBCustomLoginDialog.h"
- @implementation FBCustomLoginDialog
- - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
- NSURL* url = request.URL;
- if ([[url absoluteString] rangeOfString:@"login"].location == NSNotFound) {
- [self dialogDidSucceed:url];
- return NO;
- }
- else if (url != nil) {
- [_spinner startAnimating];
- [_spinner setHidden:NO];
- return YES;
- }
- return NO;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment