Mercurial > hg > soniczoomios
diff IntroViewController.mm @ 24:a4908ad8c78e
Top and bottom toolbars. Intro page.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 01 Feb 2013 11:16:56 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IntroViewController.mm Fri Feb 01 11:16:56 2013 +0000 @@ -0,0 +1,68 @@ +// +// IntroViewController.m +// sonicZoom +// +// Created by Robert Tubb on 29/01/2013. +// +// + +#import "IntroViewController.h" +#import "testApp.h" +@interface IntroViewController () + +@end + +@implementation IntroViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (void)setAppRef:(id)theOFApp{ + self.theOFAppRef = theOFApp; + +} + +- (IBAction)show:(id)sender +{ + self.theOFAppRef = sender; + self.view.hidden = NO; +} +- (IBAction)hide:(id)sender +{ + self.view.hidden = YES; + ((testApp *)self.theOFAppRef)->introHidden(YES); + +} +- (IBAction)disagree:(id)sender +{ + // shut down the app + self.view.hidden = YES; + ((testApp *)self.theOFAppRef)->introHidden(NO); +} +- (void)dealloc { + [_text release]; + [super dealloc]; +} +- (void)viewDidUnload { + [self setText:nil]; + [super viewDidUnload]; +} +@end