-2

I want to make an iPhone app just like a questionnaire/Quize, and want to store all questions in sqlite database , i need to have One question that can be a label and 4 radio buttons for answers, user will select the option and will go for the next question, questions and answers will be saved in sqlite and at the end user will come to know how many he made correct or wrong choices.

Please suggest me any tutorial or anything that can be help full for me,please guise i will be grateful to u for this kindness in advance.

4

2 回答 2

0

将您的项目分解为以下问题: 1. 如何在 iPhone 中创建 GUI?2. iPhone如何连接数据库?3. 如何在 iPhone 中创建标签、单选按钮?4. 如何在 iPhone 中提交表单?等等。

然后在网上搜索其中的每一个。单独执行这些示例,测试它们并将它们组合起来。

瞧,你有一个全新的问卷应用程序:)!!!

于 2013-04-09T13:35:54.420 回答
0

只需创建一个包含如下列的表的数据库:id,问题,answer1,answer2,answer3,answer4,正确答案,正确答案;

如果您不了解 SQL,请使用FMDB 之类的包装器

之后,我们使用内置函数从数据库中获取具有特定 id(即问题编号)的问题并将其传递给您的问题提问类。当用户按下答案时,检查它是否正确并修改“回答正确”列。

于 2013-04-09T13:20:25.540 回答