📜  如何使测验快速堆栈溢出 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.694000             🧑  作者: Mango

代码示例1
let quesInfoArr = [

    QuesInfo(question: "this is your first question",
             answers: [
                Answer(answer: "ansA", isSelected: false),
                Answer(answer: "ansB", isSelected: false),
                Answer(answer: "ansC", isSelected: false),
                Answer(answer: "ansD", isSelected: false)
        ]),
    QuesInfo(question: "this is your second question",
             answers: [
                Answer(answer: "ansA", isSelected: false),
                Answer(answer: "ansB", isSelected: false),
                Answer(answer: "ansC", isSelected: false),
                Answer(answer: "ansD", isSelected: false)
        ]),
    QuesInfo(question: "this is your third question",
             answers: [
                Answer(answer: "ansA", isSelected: false),
                Answer(answer: "ansB", isSelected: false),
                Answer(answer: "ansC", isSelected: false),
                Answer(answer: "ansD", isSelected: false)
        ]),
    QuesInfo(question: "this is your fourth question",
             answers: [
                Answer(answer: "ansA", isSelected: false),
                Answer(answer: "ansB", isSelected: false),
                Answer(answer: "ansC", isSelected: false),
                Answer(answer: "ansD", isSelected: false)
        ])

]