mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
55 lines
1.1 KiB
Mathematica
55 lines
1.1 KiB
Mathematica
![]() |
//
|
||
|
// LoginViewController.m
|
||
|
// NewsBlur
|
||
|
//
|
||
|
// Created by Samuel Clay on 10/31/10.
|
||
|
// Copyright 2010 NewsBlur. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "LoginViewController.h"
|
||
|
#import "Three20/Three20.h"
|
||
|
|
||
|
@implementation LoginViewController
|
||
|
|
||
|
@synthesize appDelegate;
|
||
|
@synthesize usernameTextField;
|
||
|
@synthesize passwordTextField;
|
||
|
|
||
|
- (void)viewDidLoad {
|
||
|
[usernameTextField becomeFirstResponder];
|
||
|
[super viewDidLoad];
|
||
|
}
|
||
|
|
||
|
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
|
||
|
[textField resignFirstResponder];
|
||
|
if(textField == usernameTextField) {
|
||
|
[passwordTextField becomeFirstResponder];
|
||
|
} else if (textField == passwordTextField) {
|
||
|
NSLog(@"Password return");
|
||
|
[self dismissModalViewControllerAnimated:YES];
|
||
|
}
|
||
|
return YES;
|
||
|
}
|
||
|
|
||
|
- (void)didReceiveMemoryWarning {
|
||
|
// Releases the view if it doesn't have a superview.
|
||
|
[super didReceiveMemoryWarning];
|
||
|
|
||
|
// Release any cached data, images, etc that aren't in use.
|
||
|
}
|
||
|
|
||
|
- (void)viewDidUnload {
|
||
|
// Release any retained subviews of the main view.
|
||
|
// e.g. self.myOutlet = nil;
|
||
|
}
|
||
|
|
||
|
|
||
|
- (void)dealloc {
|
||
|
[usernameTextField release];
|
||
|
[passwordTextField release];
|
||
|
[super dealloc];
|
||
|
}
|
||
|
|
||
|
|
||
|
@end
|