Created
August 9, 2010 05:16
-
-
Save linuxsable/514973 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
| // Check Twitter username & password | |
| - (void)initiateCredentialCheckWithUsername:(NSString *)username password:(NSString *)password { | |
| self.authCID = [self.twitterEngine getXAuthAccessTokenForUsername:username password:password]; | |
| self.twitterUsername = username; | |
| } | |
| - (void)requestFailed:(NSString *)requestIdentifier withError:(NSError *)error { | |
| NSLog(@"Request failed"); | |
| NSLog(@"%@", requestIdentifier); | |
| NSLog(@"%@", error); | |
| // Failed to login | |
| if (self.authCID == requestIdentifier) { | |
| UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Login Failure." message:@"You have failed to login" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil] autorelease]; | |
| [alert show]; | |
| [self.loginViewController.spinner stopAnimating]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment