Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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
Download course materials from Github
Previous: Using Dictionaries Next: Quiz: Control Flow in Action