-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIncorporationViewController.m
63 lines (52 loc) · 1.57 KB
/
IncorporationViewController.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// IncorporationViewController.m
// eightbitceo
//
// Created by Ger Kelly on 18/04/2013.
// Copyright (c) 2013 Getchoo Creations. All rights reserved.
//
#import "IncorporationViewController.h"
#import "CompanyDetailsViewController.h"
@interface IncorporationViewController ()
@end
@implementation IncorporationViewController
@synthesize companyName;
@synthesize founderFirstName;
@synthesize FounderLastName;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)viewDidUnload
{
[self setCompanyName:nil];
[self setFounderFirstName:nil];
[self setFounderLastName:nil];
[super viewDidUnload];
// Release any retained subviews of the main view.
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return NO;
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
CompanyDetailsViewController *controller = (CompanyDetailsViewController *)segue.destinationViewController;
controller.companyName = self.companyName.text;
controller.founderFirstName = self.founderFirstName.text;
controller.founderLastName = self.FounderLastName.text;
}
@end