Guest User

Untitled

a guest
Jun 24th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. - (IBAction) validateUser:(id) sender {
  2. RCAuth *rcA = [[RCAuth alloc] initWithUser:[username text] password:[password text]];
  3. // ASSERT: rcA now contains information about the user's login and password.
  4. /*
  5. NSLog(@"OK %d", [rcA isLoggedIn]);
  6. if ([rcA isLoggedIn] == 1) {
  7. NSLog(@"before res");
  8. [(UITextField *)sender resignFirstResponder];
  9. NSLog(@"after res");
  10. // ASSERT: Remove the keyboard from the screen.
  11.  
  12. //[[self navigationController] pushViewController:eventsView animated:YES];
  13. // ASSERT: Notify the main program that the user has successfully
  14. // authenticated themselves.
  15. }
  16. else {
  17. [errorLabel setText:@"Invalid username or password."];
  18. }
  19. */
  20. NSLog(@"BEFORE REL %d", [rcA retainCount]);
  21. [rcA release];
  22. NSLog(@"After REL");
  23. }
Add Comment
Please, Sign In to add comment