Created
August 2, 2010 06:16
-
-
Save Kentzo/504194 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ([self class] == [FBPermissionDialog class]) { | |
| NSData *body = [request HTTPBody]; | |
| if (body != nil) { | |
| NSString *httpBody = [NSString stringWithUTF8String:[[request HTTPBody] bytes]]; | |
| NSRange range = [httpBody rangeOfString:@"Don%27t+Allow"]; | |
| if (range.location != NSNotFound) { // User clicks on "don't allow" | |
| [self dismissWithSuccess:NO animated:YES]; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment