Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 10    Views: 62

bfoutty
Code is Art
Profile
Posts: 185
Reg: Jun 12, 2011
Youngstown, OH
12,650
06/13/13 06:21 AM (12 years ago)

Quiz timer

I am using a quiz in my next app and I would like to have the timer reset with each new question (there are 21 questions). I know this is possible and should probably be done in the quizRunningLoop method; however, I am not sure what might be the best way of achieving this. Any help would be appreciated.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/17/13 08:18 PM (12 years ago)
This is just a thought. It may not work at all but try setting the total seconds label to 0 somewhere inside the transitionQuestion method (function call) [self setTotalSeconds:0]; or _totalSeconds=0;
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/17/13 08:21 PM (12 years ago)
If this is the NAD Advanced quiz add this: _totalSeconds = 0; just under the line that looks like this: -(void)transitionQuestion {
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/17/13 08:23 PM (12 years ago)
If your using the BT interactive quiz add this [self setTotalSeconds:0]; after this line -(void)transitionQuestion {
 
bfoutty
Code is Art
Profile
Posts: 185
Reg: Jun 12, 2011
Youngstown, OH
12,650
like
06/18/13 03:54 AM (12 years ago)
I am using your plugin because of the advanced functionality and ability to rotate and background screens. Thanks for the info. I will check it out. I love the advanced features in your plugin. That you for developing it and taking the time to answer my question.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/18/13 03:56 AM (12 years ago)
I am putting this into ver 1.4 of the NAD quiz plugin. That way there is a switch in the CP to turn this feature off or on.
 
bfoutty
Code is Art
Profile
Posts: 185
Reg: Jun 12, 2011
Youngstown, OH
12,650
like
06/18/13 03:59 AM (12 years ago)
That's awesome! I can't wait to use the plugin even more extensively. I have a written a textbook for the math class I teach using iBooks Author and I will tell you that your review plugin blows away the review question widget Apple has as part of their software.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/18/13 04:02 AM (12 years ago)
Review plugin? You might be thinking of Sandeep.
 
bfoutty
Code is Art
Profile
Posts: 185
Reg: Jun 12, 2011
Youngstown, OH
12,650
like
06/18/13 04:08 AM (12 years ago)
Sorry I meant to say your quiz plugin is better than Apple's review widget (which is a multiple choice quiz question). Thanks for the concern, but I just woke up. I am on the East Coast. I think it's late where you are, although it could be fatigue as I am currently at Disney World with my family so it could be heat exhaustion.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
06/18/13 04:10 AM (12 years ago)
Late here being 5 am. I am working nights right now, so been up all night at work. I am a bit of a math person myself. Got my BS in Math at Uni.
 
bfoutty
Code is Art
Profile
Posts: 185
Reg: Jun 12, 2011
Youngstown, OH
12,650
like
06/18/13 04:12 AM (12 years ago)
I figured you were math or engineering. Great math minds think alike!
 

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.