CocoaPods trunk is moving to be read-only. Read more on the blog, there are 2 months to go.

QULQuestionnaire 0.3.1

QULQuestionnaire 0.3.1

TestsTested ✗
LangLanguage Obj-CObjective C
License Apache 2
ReleasedLast Release Dec 2014

Maintained by Tilo Westermann.



  • By
  • Tilo Westermann

QULQuestionnaire-iOS

QULQuestionnaire provides a drop-in solution for presenting an in-app questionnaire to the user. It may fetch questionnaire data from a remote server and build the questionnaire at runtime with the following options:

Questionaire items & JSON format

Single selection (radio)

{
  "key": STRING,
  "type": "radio",
  "orientation": STRING ("horizontal" | "vertical") 
  "question": STRING,        
  "instruction": STRING,
  "required": BOOL,
  "randomized": BOOL,
  "other": BOOL // optional; only available in vertical orientation
  "options": [
    {
      "key": STRING,
      "value": STRING,
      "default": BOOL // optional
    }
  ]
}

Single selection vertical Single selection horizontal

Overall rating (smiley scale)

{
  "key": STRING,
  "type": "smiley",
  "question": STRING,
  "instruction": STRING, 
  "required": BOOL
}

Smiley

Multiple selection (checkbox)

{
  "key": STRING,
  "type": "checkbox",
  "question": STRING,
  "instruction": STRING,    
  "required": BOOL,
  "randomized": BOOL,
   "maxSelectable": INT, // optional
   "options": [
     {
       "key": STRING,
       "value": STRING,
       "selected": BOOL // optional
      }
    ]
}

Value from range (slider)

{
  "key": STRING,
  "type": "slider",
  "question": STRING,
  "instruction": STRING,
  "required": BOOL,
  "minValue": FLOAT,
  "maxValue": FLOAT,
  "minLabel": STRING,
  "maxLabel": STRING,
  "showSelectedValue": BOOL, // optional
  "stepValue": INT // optional
}

Slider

Text

{
  "key": STRING,
  "type": "text",
  "question": STRING,
  "input": STRING ("text" | "number" | "email") , // optional, defaults to text
  "instruction": STRING,
  "placeholder": STRING,
  "required": BOOL
}

Single selection vertical

Ranking

{
  "key": STRING,
  "type": "sortable",
  "question": STRING,    
  "instruction": STRING,
  "required": BOOL,
  "randomized": BOOL,
  "options": [
    {
      "key": STRING,
      "value": STRING
    }
  ]
}

Ranking

Installation

Manual

Copy all files from the QULQuestionnare folder to your project.

Requirements

  • iOS7 (will work on iOS6 without RMStepsController)
  • ARC

Dependencies

License

QULQuestionnaire-iOS is licensed under the terms of the Apache License, version 2.0. Please see the LICENSE file for full details.