Mercurial > hg > soniczoomios
comparison QuestionnaireViewController.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 | e2c62db1e265 |
children | 23ef179c3748 |
comparison
equal
deleted
inserted
replaced
28:e2c62db1e265 | 29:fabb3a5cdfc9 |
---|---|
103 q = [questionArray objectAtIndex:i]; | 103 q = [questionArray objectAtIndex:i]; |
104 answersArray.push_back(q.answer); | 104 answersArray.push_back(q.answer); |
105 | 105 |
106 } | 106 } |
107 const char *userComments = [self.commentText.text cStringUsingEncoding: NSUTF8StringEncoding]; | 107 const char *userComments = [self.commentText.text cStringUsingEncoding: NSUTF8StringEncoding]; |
108 | 108 [self.commentText resignFirstResponder]; |
109 | |
110 self.view.hidden = YES; | |
109 ((testApp *)self.theOFAppRef)->questionnaireHidden(answersArray, userComments); | 111 ((testApp *)self.theOFAppRef)->questionnaireHidden(answersArray, userComments); |
110 [self.commentText resignFirstResponder]; | 112 |
111 | |
112 self.view.hidden = YES; | |
113 } | 113 } |
114 | 114 |
115 //---------------------------------------------------------------- | 115 //---------------------------------------------------------------- |
116 -(IBAction)show:(id)sender{ | 116 -(IBAction)show:(id)sender{ |
117 self.view.hidden = NO; | 117 self.view.hidden = NO; |
154 | 154 |
155 self.titleText.text = @"Thank you!"; | 155 self.titleText.text = @"Thank you!"; |
156 | 156 |
157 self.commentText.hidden = NO; | 157 self.commentText.hidden = NO; |
158 | 158 |
159 self.questionText.text = @"Thanks for helping science help you. Feel free to add further comments in the text box below, and then press 'finish' to go back to the app."; | 159 self.questionText.text = @"Thanks for helping science help you. Feel free to add further comments in the text box below, and then press 'finish' to go back and use the app, unhassled."; |
160 } | 160 } |
161 | 161 |
162 //---------------------------------------------------------------- | 162 //---------------------------------------------------------------- |
163 - (void)loadQuestion:(NSInteger)questionIndex { | 163 - (void)loadQuestion:(NSInteger)questionIndex { |
164 // populate text fields with question | 164 // populate text fields with question |