Discussion Forums  >  Uncategorized

Replies: 12    Views: 329

G8torBrent
Aspiring developer
Profile
Posts: 27
Reg: Mar 04, 2011
location unknow...
270
03/28/11 10:15 AM (14 years ago)

Quiz not randomizing questions, just the order of the questions

Sorry to get back on this iOS issue. The quiz is ONLY drawing from the first X questions in the array of quiz questions, where X is the number of questions in the quiz. (I had X at five. Then changed X to six.) I know something in quizViewController.m is affecting this (from previous forum question) but not sure how to fix.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/28/11 10:52 AM (14 years ago)
Don't be sorry. The quiz is only supposed to draw from the first x questions - right? And, yes, quizViewController.m does ALL the quiz logic.
 
G8torBrent
Aspiring developer
Profile
Posts: 27
Reg: Mar 04, 2011
location unknow...
270
like
03/28/11 10:59 AM (14 years ago)
I'm confused. I have 20+ questions. If it only draws from the first x questions, what's the point in having a greater pool of questions? Not being a smart aleck, just wondering. I think I've seen the quiz on Android apps work fine, in that it pulls from the entire pool.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/28/11 11:09 AM (14 years ago)
No, this makes sense, you're not being a smart aleck..just trying to understand what's happening. What's the app name (exactly as it appears in your conrol panel) I'll get a look, gotta be something silly.
 
G8torBrent
Aspiring developer
Profile
Posts: 27
Reg: Mar 04, 2011
location unknow...
270
like
03/28/11 11:13 AM (14 years ago)
Appreciate it, David. Missing Egg. You've looked at it before and suggested I just didn't have enough questions (before I only had 15). But it's always drawing from the first [number of questions] in the pool of questions. Believe me, I've taken the quiz countless time and I never get the 15th question or the 12th question, etc. Thanks.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/28/11 11:43 AM (14 years ago)
Forgot about the cool eggy app - awesome. Looking at it now. I do remember this from a week or so ago. Wonder what's up? Hmm... digging...
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/28/11 12:03 PM (14 years ago)
Kinly re-download and take the quiz a few times, should be fine. Changed the way the random logic was working (or not!) for iOS. Can't beleive you're the only person in literally tens of thousands of these things to either notice this is mention it. Crazy. Anyway, I think you'll be fine now.
 
G8torBrent
Aspiring developer
Profile
Posts: 27
Reg: Mar 04, 2011
location unknow...
270
like
03/28/11 04:07 PM (14 years ago)
Works like a charm. Thanks! (And don't I feel special? :o) )
 
Miereter
Apple Fan
Profile
Posts: 154
Reg: Feb 21, 2011
USA
1,540
like
03/29/11 03:00 PM (14 years ago)
I can confirm also that in my case with 10 questions in the pool but 5 in use, the randomizing does work but I suspect that increasing the question pool will improve the randomizing success rate. It does work fine however (after pulling down the fresh source)
 
G8torBrent
Aspiring developer
Profile
Posts: 27
Reg: Mar 04, 2011
location unknow...
270
like
03/29/11 03:07 PM (14 years ago)
Yep, the new source fixed it. And I hadn't pulled out all my hair yet. FTW!
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
05/19/11 07:41 PM (14 years ago)
I think I am having this same problem. My app is called The Christian Mathematician. Every time I try it on the simulator and my test phone, I get the same 10 questions over and over.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
05/19/11 07:58 PM (14 years ago)
Nevermind my question. I see how it works. When you finish the quiz you have a choice to Try Again, or to Quit. If you choose Try Again, you receive the exact same 10 questions, so you can try again. If you Quit and come back to it, you will receive different questions. P.S. This is a pretty slick quiz program! Once I get this first app approved, I will apply to be a Beta tester for 1.5. I can't wait to see it!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/20/11 01:42 AM (14 years ago)
Glad you dig the quizzes... they are super popular. One guy (v1.5) has like 300 quizzes in one app. Nuts but fun I guess.
 

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.