Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 56

nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
06/14/13 05:27 PM (12 years ago)

Timer fix for NAD Advanced Quiz

A few of you noticed that the timer would drop out with iAds running. I finally found the problem. This will be fixed when version 1.4 gets released. In the meantime if you want to fix your own code, do the following. Between lines 1203-1216 there are two lines that look like this. [_quizTimeLabel setText:@""]; These two lines need to be commented out. Before: //start quiz -(void)startQuiz{ [BT_debugger showIt:self theMessage:@"startQuiz"]; //reset timer label [_quizTimeLabel setText:@""]; [self setQuizRunning:FALSE]; _qText = @""; [_quizTimeLabel setText:@""]; [self setDidFinishOnce:0]; [self setTotalSeconds:0]; }// end startQuiz- After: //start quiz -(void)startQuiz{ [BT_debugger showIt:self theMessage:@"startQuiz"]; //reset timer label //[_quizTimeLabel setText:@""]; [self setQuizRunning:FALSE]; _qText = @""; //[_quizTimeLabel setText:@""]; [self setDidFinishOnce:0]; [self setTotalSeconds:0]; }// end startQuiz-
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/14/13 07:25 PM (12 years ago)
Thank you :) Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
06/14/13 08:24 PM (12 years ago)
An odd fix - glad you figured it out!
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/15/13 03:19 AM (12 years ago)
Well, it was almost fixed. around line 1026 there is this code }else{ [self startQuiz]; } The [self startquiz] part needs to be commented out. Like this: }else{ //[self startQuiz]; }
 
mleonard
Apple Fan
Profile
Posts: 124
Reg: Nov 01, 2011
Conway,AR
1,940
like
06/15/13 11:28 AM (12 years ago)
Confirmed, that fixes it, thanks!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.