Guest User

Untitled

a guest
Jun 3rd, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // Check Twitter username & password
  2. - (void)initiateCredentialCheckWithUsername:(NSString *)username password:(NSString *)password {
  3. self.authCID = [self.twitterEngine getXAuthAccessTokenForUsername:username password:password];
  4. self.twitterUsername = username;
  5. }
  6.  
  7. - (void)requestFailed:(NSString *)requestIdentifier withError:(NSError *)error {
  8. NSLog(@"Request failed");
  9. NSLog(@"%@", requestIdentifier);
  10. NSLog(@"%@", error);
  11.  
  12. // Failed to login
  13. if (self.authCID == requestIdentifier) {
  14. UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Login Failure." message:@"You have failed to login" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil] autorelease];
  15. [alert show];
  16.  
  17. [self.loginViewController.spinner stopAnimating];
  18. }
  19. }
Add Comment
Please, Sign In to add comment