Mercurial > hg > soniczoomios
diff TimedSessionController.mm @ 31:23ef179c3748
Ben / Christian 0.2
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 01 Mar 2013 13:28:45 +0000 |
parents | c0a6f7c66719 |
children | 92dba082d957 |
line wrap: on
line diff
--- a/TimedSessionController.mm Wed Feb 27 11:39:07 2013 +0000 +++ b/TimedSessionController.mm Fri Mar 01 13:28:45 2013 +0000 @@ -27,8 +27,6 @@ - (void)setAppRef:(id)theOFApp{ self.theOFAppRef = theOFApp; theOrder = arc4random() % 6; - NSLog(@"the order: %d", theOrder); - scount = 0; } -(void)startTimer{ @@ -61,7 +59,13 @@ }else{ themessage = [alertMessages objectAtIndex:3 ]; } - UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Thanks!" + NSString * topmsg; + if(scount == 0){ + topmsg = @"OK"; + }else{ + topmsg = @"Thanks!"; + } + UIAlertView * alert = [[UIAlertView alloc] initWithTitle:topmsg message:themessage delegate:self cancelButtonTitle:@"Continue" @@ -69,6 +73,7 @@ alert.alertViewStyle = UIAlertViewStyleDefault; [alert show]; [alert release]; + }