rt300@24: // rt300@24: // IntroViewController.m rt300@24: // sonicZoom rt300@24: // rt300@24: // Created by Robert Tubb on 29/01/2013. rt300@24: // rt300@24: // rt300@24: rt300@24: #import "IntroViewController.h" rt300@24: #import "testApp.h" rt300@24: @interface IntroViewController () rt300@24: rt300@24: @end rt300@24: rt300@24: @implementation IntroViewController rt300@24: rt300@24: - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil rt300@24: { rt300@24: self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; rt300@24: if (self) { rt300@24: // Custom initialization rt300@24: } rt300@24: return self; rt300@24: } rt300@24: rt300@24: - (void)viewDidLoad rt300@24: { rt300@24: [super viewDidLoad]; rt300@24: // Do any additional setup after loading the view from its nib. rt300@24: } rt300@24: rt300@24: - (void)didReceiveMemoryWarning rt300@24: { rt300@24: [super didReceiveMemoryWarning]; rt300@24: // Dispose of any resources that can be recreated. rt300@24: } rt300@24: rt300@24: - (void)setAppRef:(id)theOFApp{ rt300@24: self.theOFAppRef = theOFApp; rt300@24: rt300@24: } rt300@24: rt300@24: - (IBAction)show:(id)sender rt300@24: { rt300@24: self.theOFAppRef = sender; rt300@24: self.view.hidden = NO; rt300@24: } rt300@24: - (IBAction)hide:(id)sender rt300@24: { rt300@24: self.view.hidden = YES; rt300@24: ((testApp *)self.theOFAppRef)->introHidden(YES); rt300@24: rt300@24: } rt300@24: - (IBAction)disagree:(id)sender rt300@24: { rt300@24: // shut down the app rt300@24: self.view.hidden = YES; rt300@24: ((testApp *)self.theOFAppRef)->introHidden(NO); rt300@24: } rt300@24: - (void)dealloc { rt300@24: [_text release]; rt300@24: [super dealloc]; rt300@24: } rt300@24: - (void)viewDidUnload { rt300@24: [self setText:nil]; rt300@24: [super viewDidUnload]; rt300@24: } rt300@24: @end