diff IntroViewController.mm @ 27:27cdf475aa4b

more fiddling
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Wed, 29 Oct 2014 15:38:38 +0000
parents 1e6d4ece1572
children 953db6518738
line wrap: on
line diff
--- a/IntroViewController.mm	Tue Oct 28 19:15:28 2014 +0000
+++ b/IntroViewController.mm	Wed Oct 29 15:38:38 2014 +0000
@@ -10,6 +10,8 @@
 #import "testApp.h"
 @interface IntroViewController ()
 
+
+
 @end
 
 @implementation IntroViewController
@@ -19,6 +21,7 @@
     self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
     if (self) {
         // Custom initialization
+        self.interfaceSelection = 0;
     }
     return self;
 }
@@ -28,6 +31,12 @@
     [super viewDidLoad];
     // Do any additional setup after loading the view from its nib.
 }
+- (IBAction)oninterfaceSelect:(id)sender {
+    UISegmentedControl *seg = (UISegmentedControl *)sender;
+    self.interfaceSelection = seg.selectedSegmentIndex;
+
+
+}
 
 - (void)didReceiveMemoryWarning
 {
@@ -40,6 +49,7 @@
     
 }
 - (IBAction)enterExpMode:(id)sender {
+    ((testApp *)self.theOFAppRef)->interfaceSelected(self.interfaceSelection);
     ((testApp *)self.theOFAppRef)->introHidden(1);
 }
 - (IBAction)enterTrainMode:(id)sender {