If the data provided is Property List (XML) then configure as following in AppDelegate.m
[HAQuizDataManager
sharedManager].<em>useSourceDataFormat =
eHAQuizDataFormatPlistType;
After setting required format as eHAQuizDataFormatPlistType
we need to provide the actual quiz data files in plist format, Basically there are two plist files need to be provided, One is for displaying the Quiz Categories and other one is for actual Quiz Questions data. Categories Plist is must be named QuizCategories and for quiz data files must be named considering the categoryid i.e Quiz</em>Category<em>category</em>id
.
Category List file : Quiz<em>Categories
Quiz Data file for categoryid = 1 : Quiz<em>Category</em>1
If the data provided in JSON, then configure as following in AppDelegate.m file, Naming of files same as explained above
[HAQuizDataManager<br />
sharedManager].<em>useSourceDataFormat =
eHAQuizDataFormatJsonType;
JSON Quiz Categories file : QuizCategories content format
[{"category<em>image</em>path":"~/Documents/Quiz Data/Plist<em>Format/geographyIcon.png","category</em>id":"1","category<em>name":"General Knowledge","category</em>description":"General knowledge has been defined in differential psychology as \"culturally valued knowledge communicated by a range of non-specialist media\" and encompassing a wide subject range."},{"category<em>image</em>path":"~/Documents/Quiz Data/Plist<em>Format/geographyIcon.png","category</em>id":"2","category<em>name":"History","category</em>description":"Are you good in history…!!!, lets test it ;)"},{"category<em>image</em>path":"~/Documents/Quiz Data/Plist<em>Format/geographyIcon.png","category</em>id":"3","category<em>name":"Geography","category</em>description":"Test your knowledge about cities, states and countries "}]
Quiz Data file for categoryid = 1 : QuizCategory1
[{"options":["United States","Australia","Newzeeland","Canada"],"Answer":"1","negative</em>points":"5","duration<em>in</em>seconds":"30","points":"10","question":"The largest producer of wool"},{"options":["Lake Baikal","Lake Chilka","Lake Titicaca","Caspian Sea"],"Answer":"3","negative<em>points":"5","duration</em>in<em>seconds":"30","points":"10","question":"Which is the largest lake in the World ?"},{"options":["Canada","West Bengal","India","London City"],"Answer":"3","negative</em>points":"5","duration<em>in</em>seconds":"30","points":"10","question":"The longest underground railway track in the World is at"},{"options":["Nagagode","Bangaluru","Namibia","Mysore"],"Answer":"2","negative<em>points":"5","duration</em>in<em>seconds":"30","points":"10","question":"The biggest Zoo in the World is at"},{"options":["Marina Tench","Gloria Trench","Deep Creep Trench","Caspian Trench"],"Answer":"0","negative</em>points":"5","duration<em>in</em>seconds":"30","points":"10","question":"Largest trench of the World"},{"options":["Canada","America","India","Brazil"],"Answer":"3","negative<em>points":"5","duration</em>in_seconds":"30","points":"10","question":"The largest coffee growing country in the World is"}]