Skip to content

Lola's QuizApp - #11

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

Lola's QuizApp#11
LolaHadi wants to merge 1 commit into
Tuwaiq-iOS-ContentTeam-2021:mainfrom
LolaHadi:main

Conversation

@LolaHadi

@LolaHadi LolaHadi commented Dec 1, 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.

يعطيك العافية يا لولا
من المشاريع الجميلة المرتبة
اشير عليك انك تضيفين فيه اصوات فعلا وتشتغلين على auto layout
وترفعينه على الستور, التطبيقات العربية اللي تستهفد الاطفال ما هي كثيرة

let stackView = UIStackView()

//Other Components
let fixedLabel = UILabel()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

سمي اسماء لها دلالة


override func viewDidLoad() {
super.viewDidLoad()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

حاولي ما تكتبين الاكواد مباشرة داخل viewDidLoad
ولكن عرفي دالة منفصلة واستدعيها هنا

index += 1
animalSoundLabel.text = ""
print(index)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

حطي في else
ان هذا العداد يصير صفر حتى يبدأ الاختبار من جديد

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ممكن تستخدمين هذا الكود
`

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

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

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