0

If I'm making an iPad app for a questionnaire that consists of 10 "yes/no" questions, what is the best way to go about this from a UI design pattern perspective?

I want only 1 question to be shown at a time. I have thought about maybe a UIPageControl, but that doesn't seem to really fit. Also I have thought about a self looping segue on the question view controller, but this also seems like it might have its own problems. What about a sidebar with each question in a list?

What is the standard/accepted/best way to go about this type of problem from a UI perspective?

Adam Johns
  • 32,040
  • 21
  • 108
  • 161

3 Answers3

2

With this requirements, my solution is to use a navigation controller with 1 ViewController that takes 3 params: question index, question content (to be displayed), response (to be chosen). Application begin with first question then go next for another question. The answers will be saved into a Dictionary.

Duyen-Hoa
  • 14,296
  • 4
  • 30
  • 40
0

If one question is shown at a time with yes/no, I'd use UIAlertView control personally. This way you can use many different dialogs, Here is Apple Developers Reference on UIAlertView:

https://developer.apple.com/library/ios/documentation/uikit/reference/UIAlertView_Class/UIAlertView/UIAlertView.html

If you have multiple selections or multiple choice questions use UIActionSheet. See my SO answer: Creating UIActionSheet

Community
  • 1
  • 1
Apollo SOFTWARE
  • 11,420
  • 4
  • 41
  • 61
  • I am not a fan of this way because I want the user to have the capability to easily go back and edit any of the 10 answers they previously gave. – Adam Johns Jul 30 '14 at 15:29
  • Point taken. You could always persist the data using CoreData from the different Dialogs, but to each his own! Things could get slopping with Pagination, and segues. I certainly hope you'd use storyboards :) – Apollo SOFTWARE Jul 30 '14 at 15:34
0

I had the exact same problem 1 year ago and I used a self-looping UIViewControllers (I'm not a huge fan of storyboard). I didn't see any problem with that. With proper data structures set up, you can very easily allow user to answer/go back/exit.

Tengyu Liu
  • 1,083
  • 2
  • 11
  • 35