Posts

Post not yet marked as solved
7 Replies
File is located in Teacher Resources -> Navigation and Workflows->Guided Projects-Quiz->PersonalityQuiz.Regarding the designer's intent:“The third view controller tallies up the answers and presents the final outcome. This result can be dismissed, allowing another player to start the quiz from the first view controller.” Excerpt From: Apple Education. “App Development with Swift.” Apple Inc. - Education, 2019. Apple Books. https://books.apple.com/us/book/app-development-with-swift/id1465002990Additionally, the intent is implied with the logic of the done button and the expectation of what the 'begin personality quiz' button would do. Regarding your question about the specific coding element: this is the root of my question. The expectation set by the text in the book is that the second view controller would be deinitialized at 'done' and subsequently reinitialized after clicking on the 'begin personality quiz' button on the introduction view controller. Given that, there isn't a specific element of code that I could site. Instead I'm attempting to understand how the viewControllers are deinitalized or reinitialized with swift by posting my question in this forum!Again, thanks for your help!
Post not yet marked as solved
7 Replies
Thanks for the request for clarification. Precise question: Why is the index retaining the prior value instead of being reinitialized to 0?