-
Notifications
You must be signed in to change notification settings - Fork 0
/
InputViewController.m
46 lines (38 loc) · 1.08 KB
/
InputViewController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// InputViewController.m
// Pokemon
//
// Created by Michael Revell on 10/6/13.
// Copyright (c) 2013 Michael Revell. All rights reserved.
//
#import "InputViewController.h"
@interface InputViewController ()
@property (strong, nonatomic) IBOutlet UILabel *label;
@property (strong, nonatomic) IBOutlet UITextField *textbox;
@property (strong, nonatomic) IBOutlet UIButton *submit;
@end
@implementation InputViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (IBAction)submit:(id)sender {
NSLog(@"This should send shit back or something");
self.textValue = self.textbox.text;
[self dismissViewControllerAnimated:YES completion:nil];
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end