equal
deleted
inserted
replaced
8 |
8 |
9 #import "MasterViewController.h" |
9 #import "MasterViewController.h" |
10 #import "DetailViewController.h" |
10 #import "DetailViewController.h" |
11 #import "GeneralSettingsViewController.h" |
11 #import "GeneralSettingsViewController.h" |
12 #import "TeamSettingsViewController.h" |
12 #import "TeamSettingsViewController.h" |
|
13 #import "CommodityFunctions.h" |
13 |
14 |
14 @implementation MasterViewController |
15 @implementation MasterViewController |
15 @synthesize detailViewController, optionList, controllers, lastIndexPath; |
16 @synthesize detailViewController, optionList, controllers, lastIndexPath; |
|
17 |
|
18 |
|
19 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { |
|
20 return rotationManager(interfaceOrientation); |
|
21 } |
|
22 |
16 |
23 |
17 #pragma mark - |
24 #pragma mark - |
18 #pragma mark View lifecycle |
25 #pragma mark View lifecycle |
19 - (void)viewDidLoad { |
26 - (void)viewDidLoad { |
20 [super viewDidLoad]; |
27 [super viewDidLoad]; |
47 [teamSettingsViewController release]; |
54 [teamSettingsViewController release]; |
48 |
55 |
49 self.controllers = array; |
56 self.controllers = array; |
50 [array release]; |
57 [array release]; |
51 } |
58 } |
52 |
|
53 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
|
54 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); |
|
55 } |
|
56 |
|
57 |
59 |
58 #pragma mark - |
60 #pragma mark - |
59 #pragma mark Table view data source |
61 #pragma mark Table view data source |
60 |
62 |
61 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |
63 -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView { |