Mercurial > hg > tweakathon2ios
diff IntroViewController.mm @ 20:1e6d4ece1572
intro screen with mode options.
seems to work.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Wed, 22 Oct 2014 16:47:11 +0100 |
parents | a223551fdc1f |
children | 27cdf475aa4b |
line wrap: on
line diff
--- a/IntroViewController.mm Wed Oct 22 16:29:31 2014 +0100 +++ b/IntroViewController.mm Wed Oct 22 16:47:11 2014 +0100 @@ -39,6 +39,15 @@ self.theOFAppRef = theOFApp; } +- (IBAction)enterExpMode:(id)sender { + ((testApp *)self.theOFAppRef)->introHidden(1); +} +- (IBAction)enterTrainMode:(id)sender { + ((testApp *)self.theOFAppRef)->introHidden(2); +} +- (IBAction)enterSearchMode:(id)sender { + ((testApp *)self.theOFAppRef)->introHidden(3); +} - (IBAction)show:(id)sender { @@ -48,14 +57,14 @@ - (IBAction)hide:(id)sender { self.view.hidden = YES; - ((testApp *)self.theOFAppRef)->introHidden(); + } - (IBAction)disagree:(id)sender { // shut down the app self.view.hidden = YES; - ((testApp *)self.theOFAppRef)->introHidden(); + ((testApp *)self.theOFAppRef)->introHidden(0); } - (void)dealloc { [_text release];