December 2014
Beginner
300 pages
8h 9m
English
This chapter explains what Swift has available for collecting and managing data. Objective-C has NSArray and NSDictionary through Cocoa. Swift is compatible and used alongside Objective-C, so you have all those NS tools available to you. In addition, you’ll also have Swift’s native arrays and dictionaries available.
This chapter describes arrays and dictionaries and the different tools available in each. You will learn how to add and remove elements from collections. You will also learn how Swift’s strong type inference allows for quickly written and strongly typed arrays and dictionaries. You will learn when to use NSArrays and when to use Swift’s own arrays.
Read now
Unlock full access