Control flow is a critical part of writing iOS apps and really, any apps at all. By using control flow, you can branch how a program behaves based on realtime data. You can also use loops to process a large amount data.
When writing programs, you’ll often nest these control flow constructs inside of each other. You’ll often have loops within loops that contain various types of if statements.
Finally, you saw that arrays and dictionaries are great ways to organize your data. Arrays work right out of the box with loops, but should you need to loop through a dictionary, you have the ability to iterate through all the keys or values.
All these concepts form the foundation of apps. There are lots more control flow constructs as well as collection types. It’s always a good idea to review the availability of these features and put them to the use in a practice app. Doing so will improve your overall developer skills.
See forum comments
This content was released on Apr 22 2025. The official support period is 6-months
from this date.
Review how collections and control make for dynamic programs
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Using Dictionaries
Next: Quiz: Control Flow in Action
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.