Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (IBAction) validateUser:(id) sender {
- RCAuth *rcA = [[RCAuth alloc] initWithUser:[username text] password:[password text]];
- // ASSERT: rcA now contains information about the user's login and password.
- /*
- NSLog(@"OK %d", [rcA isLoggedIn]);
- if ([rcA isLoggedIn] == 1) {
- NSLog(@"before res");
- [(UITextField *)sender resignFirstResponder];
- NSLog(@"after res");
- // ASSERT: Remove the keyboard from the screen.
- //[[self navigationController] pushViewController:eventsView animated:YES];
- // ASSERT: Notify the main program that the user has successfully
- // authenticated themselves.
- }
- else {
- [errorLabel setText:@"Invalid username or password."];
- }
- */
- NSLog(@"BEFORE REL %d", [rcA retainCount]);
- [rcA release];
- NSLog(@"After REL");
- }
Add Comment
Please, Sign In to add comment