Mercurial > hg > tweakathon2ios
comparison IntroViewController.mm @ 0:a223551fdc1f
First commit - copy from tweakathlon.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 10 Oct 2014 11:46:42 +0100 |
parents | |
children | 1e6d4ece1572 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a223551fdc1f |
---|---|
1 // | |
2 // IntroViewController.m | |
3 // sonicZoom | |
4 // | |
5 // Created by Robert Tubb on 29/01/2013. | |
6 // | |
7 // | |
8 | |
9 #import "IntroViewController.h" | |
10 #import "testApp.h" | |
11 @interface IntroViewController () | |
12 | |
13 @end | |
14 | |
15 @implementation IntroViewController | |
16 | |
17 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
18 { | |
19 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
20 if (self) { | |
21 // Custom initialization | |
22 } | |
23 return self; | |
24 } | |
25 | |
26 - (void)viewDidLoad | |
27 { | |
28 [super viewDidLoad]; | |
29 // Do any additional setup after loading the view from its nib. | |
30 } | |
31 | |
32 - (void)didReceiveMemoryWarning | |
33 { | |
34 [super didReceiveMemoryWarning]; | |
35 // Dispose of any resources that can be recreated. | |
36 } | |
37 | |
38 - (void)setAppRef:(id)theOFApp{ | |
39 self.theOFAppRef = theOFApp; | |
40 | |
41 } | |
42 | |
43 - (IBAction)show:(id)sender | |
44 { | |
45 self.theOFAppRef = sender; | |
46 self.view.hidden = NO; | |
47 } | |
48 - (IBAction)hide:(id)sender | |
49 { | |
50 self.view.hidden = YES; | |
51 ((testApp *)self.theOFAppRef)->introHidden(); | |
52 | |
53 } | |
54 - (IBAction)disagree:(id)sender | |
55 { | |
56 // shut down the app | |
57 self.view.hidden = YES; | |
58 ((testApp *)self.theOFAppRef)->introHidden(); | |
59 } | |
60 - (void)dealloc { | |
61 [_text release]; | |
62 [super dealloc]; | |
63 } | |
64 - (void)viewDidUnload { | |
65 [self setText:nil]; | |
66 [super viewDidUnload]; | |
67 } | |
68 @end |