Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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];
- }
- }
Add Comment
Please, Sign In to add comment