Guest User

FBCustomLoginDialog

a guest
May 25th, 2013
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "FBCustomLoginDialog.h"
  2.  
  3. @implementation FBCustomLoginDialog
  4.  
  5. - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
  6.     NSURL* url = request.URL;
  7.     if ([[url absoluteString] rangeOfString:@"login"].location == NSNotFound) {
  8.         [self dialogDidSucceed:url];
  9.         return NO;
  10.     }
  11.     else if (url != nil) {
  12.         [_spinner startAnimating];
  13.         [_spinner setHidden:NO];
  14.         return YES;
  15.     }
  16.     return NO;
  17. }
  18. @end
Advertisement
Add Comment
Please, Sign In to add comment