Constants and variables associate a name (such as maximumNumberOfLoginAttempts or welcomeMessage) with a value of a particular type (such as the number 10 or the string 'Hello'). The value of a constant cannot be changed once it is set, whereas a variable can be set to a different value in the future.
In the second part of the series, we'll be using XCode 6 and the Swift language adding a little more functionality to our checklist app using the Swift language. We'll add checkmarks, our own UITableViewCell subclass and style our app to look a little better.
If you were like me this Monday, you were sitting back enjoying the keynote, excited to start trying out all the new lovely APIs. And then your ears pricked up as you listened to words about a new language: Swift! It suddenly hit you that this is not an extension to Objective-C, but a completely brand new language. Maybe you were excited? Maybe you were happy? Maybe you didn’t know what to think.
With Apple’s recent release of the Swift programming language I have decided I have to check it out. One of the biggest reasons I’ve stayed away from Apple’s various SDKs is my dislike of Objective-C. Swift on the other hand is quite a nice little language at least from my experiences so far.