A function is a piece of Swift code that can be executed once or many times by an iOS application. In this workshop you learn how to define and use our own functions and how to use them to help write iOS applications. Before you begin, I assume you have done the following: Read workshop 1-23 […]
The Swift programming language has only 3 decision statements (a.k.a branching statements) you can use in a class file. This chapter discus them. In this workshop you will learn how to use them. Before you begin, I assume you have done the following: Read workshop 1-22 Launched the project, Swift Variable.xcodeproj in Xcode 6 IDE-see image below […]
In this workshop you learn how to us the while and do-while loop to execute a block of code until a condition is met. Before you begin, I assume you have done the following: Read workshop 1-21 Launched the project, Swift Variable.xcodeproj in Xcode 6 IDE-see image below The While Loop A while loop evaluates a condition. […]
In this workshop you learn how to us the for and for-in loop to iterate over elements in an array variable. You also learn to iterate over entries in a dictionary array variable. Before you begin, I assume you have done the following: Read workshop 1-20 Launched the project, Swift Variable.xcodeproj in Xcode 6 IDE-see image below […]
In this workshop you will learn the basics of declaring, initializing, and accessing entries of a swift dictionary. You will also learn how to manipulating entries of the dictionary. Before you begin, I assume you have done the following: Read workshop 1-19 Launched the project, Swift Variable.xcodeproj in Xcode 6 IDE-see image below A Swift dictionary is a collection of […]