annotate 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
rev   line source
rt300@24 1 //
rt300@24 2 // BottomTabViewController.m
rt300@24 3 // sonicZoom
rt300@24 4 //
rt300@24 5 // Created by Robert Tubb on 31/01/2013.
rt300@24 6 //
rt300@24 7 //
rt300@24 8
rt300@24 9 #import "BottomTabViewController.h"
rt300@24 10 #import "testApp.h"
rt300@24 11 @interface BottomTabViewController ()
rt300@24 12
rt300@24 13 @end
rt300@24 14
rt300@24 15 @implementation BottomTabViewController
rt300@24 16
rt300@24 17 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
rt300@24 18 {
rt300@24 19 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
rt300@24 20 if (self) {
rt300@24 21 // Custom initialization
rt300@24 22 }
rt300@24 23 return self;
rt300@24 24 }
rt300@24 25
rt300@24 26 - (void)viewDidLoad
rt300@24 27 {
rt300@24 28 [super viewDidLoad];
rt300@24 29 // Do any additional setup after loading the view from its nib.
rt300@24 30 }
rt300@24 31
rt300@24 32 - (void)didReceiveMemoryWarning
rt300@24 33 {
rt300@24 34 [super didReceiveMemoryWarning];
rt300@24 35 // Dispose of any resources that can be recreated.
rt300@24 36 }
rt300@24 37
rt300@24 38 - (void)setAppRef:(id)theOFApp{
rt300@24 39 self.theOFAppRef = theOFApp;
rt300@24 40
rt300@24 41 }
rt300@24 42
rt300@24 43 - (IBAction)interfaceSelected:(UISegmentedControl *)sender {
rt300@24 44
rt300@24 45 NSInteger whichTab = sender.selectedSegmentIndex;
rt300@24 46 ((testApp *)self.theOFAppRef)->interfaceSelected(whichTab);
rt300@24 47
rt300@24 48 }
rt300@24 49
rt300@24 50 - (IBAction)show:(id)sender
rt300@24 51 {
rt300@24 52 self.theOFAppRef = sender;
rt300@24 53 self.view.hidden = NO;
rt300@24 54 }
rt300@24 55
rt300@24 56 @end