In Objective-C, if you want to return multiple values from a function or method you have to either create a class or store values in a dictionary. In Swift though, we have an alternative: Tuples.
In this post, we take a look at the
UIAlertController class, a class introduced by Apple in iOS 8 as a replacement for the traditional
The Swift guard Statement
guard statement brings the power of the nightclub doorman to the Swift language promising cleaner, more explicit and a more elegant code. In this article I want to find out whether it lives up to these promises.
An Introduction to Functions
When we write C or Objective-C programs we can divide those programs into smaller blocks of code, each of which performs a certain task. In this post, we take a look at the concept of functions.
Primitive Data Types in Objective-C
When we look at the multitude of different apps available for the various iOS platforms it is easy to forget that at their core, the various Apple devices all work in binary. We as humans don’t think this way though and in order for us to program computers systems efficiently, we need a intermediate language […]
When we write our iOS apps we often need a temporary place in which to store the data used within the app. Whether it be a finance app needing to store the current balance in a bank account, a game that needs to store the position of a player’s character on the screen or a music app storing a user’s playlist, all these applications use the same mechanism: variables.