Posted on June 24, 2016
by Steven Lipton
5 Comments
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”
Category: Swift Programming, Swift Swift, TutorialTags: .keys, .values, add dictionary, adding dictionary swift, change dictionary, compare dictionares with arrays, delete dictionary, deleting dictionary swift, dictionary optional, iterating dictionaries Swift, key, key:value, Optional Values, removeValueForkey, swift, Swift dictionaries, updateValue
Posted on August 7, 2015
by Steven Lipton
8 Comments
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.”
Category: ios8, iOS9, KinderSwift tutorial, Swift, Swift Programming, TutorialTags: abstract classes, AnyObject, Class, class methods, data sources, delegates, instance methods, Optional chaining, Optional Values, optionals, override, protocols, subclassing, Swift Optional Values
Posted on August 21, 2014
by Steven Lipton
12 Comments
[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”
Category: Swift Programming, Swift Swift, TutorialTags: .keys, .values, add dictionary, adding dictionary swift, change dictionary, compare dictionares with arrays, delete dictionary, deleting dictionary swift, dictionary optional, iterating dictionaries Swift, key, key:value, Optional Values, removeValueForkey, swift, Swift dictionaries, updateValue
Posted on June 27, 2014
by Steven Lipton
4 Comments
[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”