Created
July 14, 2014 16:15
-
-
Save simistern/255fe2cd2e40439e431e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// IntakeViewController.h | |
// Intake | |
// | |
// Created by Simon Stern on 2014-07-11. | |
// Copyright (c) 2014 com.SimiStern. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface IntakeViewController : UIViewController | |
@property (weak, nonatomic) IBOutlet UITextField *NameField; | |
@property (weak, nonatomic) IBOutlet UITextField *PassField; | |
@property (weak, nonatomic) IBOutlet UILabel *TestLabel; | |
- (void)ProcessName:(NSString *)Name; | |
- (IBAction)SubmitID:(id)sender; | |
- (IBAction)DismissName:(id)sender; | |
- (IBAction)DismissPass:(id)sender; | |
@end | |
// IntakeViewController.m | |
// Intake | |
// | |
// Created by Simon Stern on 2014-07-11. | |
// Copyright (c) 2014 com.SimiStern. All rights reserved. | |
// | |
#import "IntakeViewController.h" | |
@interface IntakeViewController () | |
@end | |
@implementation IntakeViewController | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Do any additional setup after loading the view, typically from a nib. | |
} | |
- (void)didReceiveMemoryWarning | |
{ | |
[super didReceiveMemoryWarning]; | |
// Dispose of any resources that can be recreated. | |
} | |
- (void)ProcessName:(NSString *)Name{ | |
_TestLabel.text = Name; | |
} | |
- (IBAction)SubmitID:(id)sender { | |
NSString *Name = _NameField.text; | |
NSString *Pword = _PassField.text; | |
[self ProcessName]; | |
} | |
- (IBAction)DismissName:(id)sender { | |
[self resignFirstResponder]; | |
} | |
- (IBAction)DismissPass:(id)sender { | |
[self resignFirstResponder]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment