Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 90

NorfolkAndGood
Aspiring developer
Profile
Posts: 41
Reg: Jul 17, 2013
Cirencester
410
09/16/13 11:39 AM (12 years ago)

Interactive Quiz Question Numbering

Hi Does anyone know if it is possible to show a question counter in the Interactive Quiz Plugin. My app have been rejected several times now by Apple and I plan to make it better than they are asking. One of the reasons for rejection was that it didn't tell the user how many questions were coming, so I have changed the picture which shows when the "start Quiz" button is displayed to say how many questions are coming. What I would like to do is, alongside the timer on the bottom right of the lower bar, make it show the question number out of how many are coming, i.e. for question 3 of 20 it would show 3/20 etc. Could anyone help with the code please, I believe it will help all aspiring developers to increase their chances of getting their apps accepted. Thank you in anticipation.
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
09/16/13 12:57 PM (12 years ago)
This would help me with a couple of issues as well.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
09/16/13 01:10 PM (12 years ago)
The Advanced Quiz plugin has this feature. It was added as recently as ver 1.4.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
09/17/13 06:33 AM (12 years ago)
Change the part after the = to a variable. You will put something like this: self.navigationController.navigationBar.topItem.title = @"myNavBarTitleText"; in viewDidAppear to after this line: [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; Change the variable during the question transition as well as calling this function again.
 
NorfolkAndGood
Aspiring developer
Profile
Posts: 41
Reg: Jul 17, 2013
Cirencester
410
like
09/17/13 07:33 AM (12 years ago)
Thank you for the assistance, but this is beyond my very limited coding skills. You mention that the advanced quiz has this function, if I were to switch to using the NAD advanced quiz, is it compatible with the BTconfig file from the interactive quiz? I dread the thought of having to input all 450 questions again.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
09/17/13 08:56 AM (12 years ago)
It is somewhat compatible. There is no android version yet. The json keys for the questions and answers should transfer fine. But you'll need to copy and paste the quiz questions into a text file and use the 'Screen Data (Advanced)' section Your work flow will be something like this. 1. Copy all your app data from your current apps 'Configuration Data' screen and past it jsonlint.com 2. press the validate button to clean up the file. 3. Copy the output into a text file. 4. Cut out all the app data in the text file leaving only the questions and answers. 5. It should look something like this. https://dl.dropboxusercontent.com/u/2452503/breakers_relays_disconnectscomp_pwransw_v.txt You can ignore all the image data in this file. Also you can leave the itemType as it is already in your text file. 6. Run your file through jsonlint.com again to make sure it is validated. 7. Enter the your text file name into 'Screen Data (Advanced)' section. 8. Drag and drop the text file into your ios project. (no android for this plugin yet).
 

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.