Skip to content

Wejdan ibrahim - #16

Open
wejdanjb wants to merge 1 commit into
Tuwaiq-iOS-ContentTeam-2021:mainfrom
wejdanjb:main
Open

Wejdan ibrahim#16
wejdanjb wants to merge 1 commit into
Tuwaiq-iOS-ContentTeam-2021:mainfrom
wejdanjb:main

Conversation

@wejdanjb

@wejdanjb wejdanjb commented Dec 2, 2021

Copy link
Copy Markdown

No description provided.

@Almatrafi-A Almatrafi-A left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

يعطيك العافية وجدان

}
}
@objc func AnswerQuiz (){
myLabel2.text = Arranswer[nextindex]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

فيه خطأ منطقي في الاجوبة يتم عرضها بشكل متسلسل وليست مرتبطة مع الاسئلة,
يعني لو ضغط المستخدم على زر الجواب مرتين راح يعرض له جواب مختلف

]

@objc func QuestionQuiz (){
myLabel2.text = "???"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

لاصلاح مشكلة الاجوبة ممكن تستخدمين هذا الكود

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currentQuestionIndex += 1
if currentQuestionIndex == questions.count {
    currentQuestionIndex = 0
}

let question: String = questions[currentQuestionIndex]
questionLabel.text = question
answerLabel.text = "???"`

`


class ViewController: UIViewController {

let myLabel = UILabel(frame: CGRect(x: 50, y: 300, width: 300, height: 20))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ننصح ان التسميات دايم تكون لها دلالة

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants