-
Notifications
You must be signed in to change notification settings - Fork 1
/
HomeScreenViewController.m
executable file
·57 lines (40 loc) · 1.52 KB
/
HomeScreenViewController.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
//
// HomeScreenViewController.m
// iBilancio
//
// Created by Fabio Sassu on 18/05/13.
// Copyright (c) 2013 Fabio Sassu. All rights reserved.
//
#import "HomeScreenViewController.h"
#import "TransactionsViewController.h"
#import "BudgetViewController.h"
#import "SettingsViewController.h"
#import "HelpViewController.h"
@interface HomeScreenViewController ()
@end
@implementation HomeScreenViewController
- (void)viewDidLoad
{
[super viewDidLoad];
}
-(IBAction)transactionButtonPressed:(id)sender{
TransactionsViewController *next = [[TransactionsViewController alloc] initWithNibName:@"TransactionsViewController" bundle:nil];
[self.navigationController pushViewController:next animated:YES];
[next release];
}
-(IBAction)budgetButtonPressed:(id)sender{
BudgetViewController *next = [[BudgetViewController alloc] initWithNibName:@"TabBarViewController" bundle:nil];
[self.navigationController pushViewController:next animated:YES];
[next release];
}
-(IBAction)settingsButtonPressed:(id)sender{
SettingsViewController *next = [[SettingsViewController alloc] initWithNibName:@"SettingsViewController.h" bundle:nil];
[self.tabBarController.navigationController pushViewController:next animated:YES];
[next release];
}
-(IBAction)helpButtonPressed:(id)sender{
HelpViewController *helpPage = [[HelpViewController alloc]initWithNibName:@"HelpViewController" bundle:nil];
[self.navigationController pushViewController:helpPage animated:YES];
[helpPage release];
}
@end