Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
Just wanting some advice about the best structure for setting up a quiz with an unknown number of questions, 5 - 10. Each question will either contain a UIPicker or a Segmented Control depending on the number of choices.
I just want to know the best way to set this up.
Do I create 1 Super view which contains all the sub views (questions) and then just show and hide each sub view (question) as I need them.
Or
Is it better to have a separate ViewController for each question, create a class for each question up to the maximum number of questions (10)
Or
If I wanted to use a navigation Controller style for my app to go back to previous question, could I create 2 View Controllers, Question1ViewController and Question2ViewController and then just swap out sub views within each ViewController depending on whether Picker or Segmented.
Is it even possible to do?
For example, I am currently on Question2ViewController, I click the next question, Question1ViewController with new content slides on from the right But if I choose to click back instead of next, Question1ViewController with previous content slides on from left?
I think a good idea would be to have a superview that can show and hide questions and then another controller that would show a way to select a specific question, not just being able to go forward and back.
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeI suppose I could use the page control object maybe
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome