Tag: Optional Values

How to Use Dictionaries in Swift 3.0

What is a Dictionary Dictionaries and arrays make up the collection types of Swift. Collections are exactly what they say: a collection of values. The difference between an array and a dictionary is how you get the values in and out of the collection.… Continue Reading “How to Use Dictionaries in Swift 3.0”

A Swift Tutorial for Working with Classes Part 3: Abstract classes.

In the first tutorial in this series we introduced classes. In  the second we did some more advanced manipulations of classes. In both, we discussed the idea of inheritance, which has one final possibility: a class whose only purpose is to define other classes.… Continue Reading “A Swift Tutorial for Working with Classes Part 3: Abstract classes.”

The Swift Swift Tutorial: How to Use Dictionaries in Swift

[Updated to Swift 2.0 9/10/2015 SJL] I wrote early in my Swift tutorials a simple example of a dictionary But I really didn’t go too deep into all the ways one can use a dictionary. In this lesson we’ll bring everyone up to speed… Continue Reading “The Swift Swift Tutorial: How to Use Dictionaries in Swift”

The Swift Swift Tutorial: Using Dictionaries and Optional Types

[Updated for Swift 2.0/iOS9 9/10/2015 – SJL ] In our last lesson, The PizzaDemo App so far told us some information about pizza sizes. What would be nice is for it to tell us the price for a pizza, based on the area of… Continue Reading “The Swift Swift Tutorial: Using Dictionaries and Optional Types”