Mercurial > hg > soniczoomios
comparison TopButtonViewController.mm @ 29:fabb3a5cdfc9
Timed session improvements. Desperate pathetic attempts to send a simple HTTP POST.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 22 Feb 2013 17:41:38 +0000 |
parents | ae4d2c3ce5e0 |
children | ab7c86d0f3d8 |
comparison
equal
deleted
inserted
replaced
28:e2c62db1e265 | 29:fabb3a5cdfc9 |
---|---|
32 { | 32 { |
33 [super viewDidLoad]; | 33 [super viewDidLoad]; |
34 // Do any additional setup after loading the view from its nib. | 34 // Do any additional setup after loading the view from its nib. |
35 self.playButton.enabled = true; | 35 self.playButton.enabled = true; |
36 self.pauseButton.enabled = false; | 36 self.pauseButton.enabled = false; |
37 self.qButton.enabled = false; | 37 self.qButton.enabled = true; |
38 | 38 self.newUserButton.enabled = true; |
39 //------------------------ | |
40 // Get the reference to the current toolbar buttons | |
41 NSMutableArray *toolbarButtons = [self.toolbarItems mutableCopy]; | |
42 | |
43 // This is how you remove the button from the toolbar and animate it | |
44 [toolbarButtons removeObject:self.qButton]; | |
45 [self setToolbarItems:toolbarButtons animated:YES]; | |
46 | |
47 // This is how you add the button to the toolbar and animate it | |
48 /* | |
49 if (![toolbarButtons containsObject:self.qButton]) { | |
50 [toolbarButtons addObject:self.qButton]; | |
51 [self setToolbarItems:toolbarButtons animated:YES]; | |
52 } | |
53 */ | |
54 | |
39 } | 55 } |
40 | 56 |
41 - (void)enableQuestionButton{ | 57 - (void)enableQuestionButton{ |
42 self.qButton.enabled = true; | 58 self.qButton.enabled = true; |
43 } | 59 } |
126 - (void)dealloc { | 142 - (void)dealloc { |
127 [_playButton release]; | 143 [_playButton release]; |
128 [_pauseButton release]; | 144 [_pauseButton release]; |
129 [_qButton release]; | 145 [_qButton release]; |
130 | 146 |
147 [_newUserButton release]; | |
131 [super dealloc]; | 148 [super dealloc]; |
132 } | 149 } |
133 - (void)viewDidUnload { | 150 - (void)viewDidUnload { |
134 [self setPlayButton:nil]; | 151 [self setPlayButton:nil]; |
135 [self setPauseButton:nil]; | 152 [self setPauseButton:nil]; |
136 [self setQButton:nil]; | 153 [self setQButton:nil]; |
154 [self setNewUserButton:nil]; | |
137 [super viewDidUnload]; | 155 [super viewDidUnload]; |
138 } | 156 } |
139 @end | 157 @end |