Mercurial > hg > soniczoomios
view BottomTabViewController.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 | f42a00e3f22d |
line wrap: on
line source
// // BottomTabViewController.m // sonicZoom // // Created by Robert Tubb on 31/01/2013. // // #import "BottomTabViewController.h" #import "testApp.h" @interface BottomTabViewController () @end @implementation BottomTabViewController - (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)interfaceSelected:(UISegmentedControl *)sender { NSInteger whichTab = sender.selectedSegmentIndex; ((testApp *)self.theOFAppRef)->interfaceSelected(whichTab); } - (IBAction)show:(id)sender { self.theOFAppRef = sender; self.view.hidden = NO; } @end