-
Notifications
You must be signed in to change notification settings - Fork 0
/
InequalityInfoViewController.m
66 lines (53 loc) · 1.94 KB
/
InequalityInfoViewController.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
64
65
66
//
// InequalityInfoViewController.m
// DinerRouge
//
// Created by Adrian Holzer on 17.11.14.
// Copyright (c) 2014 Adrian Holzer. All rights reserved.
//
#import "GAI.h"
#import "GAIDictionaryBuilder.h"
#import "GAIFields.h"
#import "InequalityInfoViewController.h"
#import "BillManager.h"
@interface InequalityInfoViewController ()
@end
@implementation InequalityInfoViewController
@synthesize doneButton, giniInfo, titleView, incomeInfo, wealthInfo, whatLabel, whoLabel, howLabel;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
whatLabel.text=NSLocalizedString(@"GINI", nil) ;
giniInfo.text=NSLocalizedString(@"INFO_GINI", nil) ;
incomeInfo.text=NSLocalizedString(@"INCOME_INFO", nil) ;
wealthInfo.text=NSLocalizedString(@"WEALTH_INFO", nil) ;
[doneButton setTitle:NSLocalizedString(@"DONE_BUTTON", nil) forState:UIControlStateNormal];
//[doneButton setImage:[UIImage imageNamed:@"bouton_done_2.png" ] forState:UIControlStateHighlighted];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(void)viewDidAppear:(BOOL)animated{
if ([[BillManager sharedBillManager] styleIsCommunist]) {
[[[GAI sharedInstance] defaultTracker] set:kGAIScreenName value:@"Inequality Info Screen-C"];
[[[GAI sharedInstance] defaultTracker] send:[[GAIDictionaryBuilder createAppView] build]];
}else{
[[[GAI sharedInstance] defaultTracker] set:kGAIScreenName value:@"Inequality Info Screen-NC"];
[[[GAI sharedInstance] defaultTracker] send:[[GAIDictionaryBuilder createAppView] build]];
}
}
-(IBAction)done:(id)sender{
NSLog(@"done");
[self dismissViewControllerAnimated:YES completion:nil];
}
@end