Teamtreehouse - Swift 2.0 Enumerations and Optionals
English | mp4 | H264 1280x720 | AAC 2 ch | 165 MB
eLearning, iOS | Level: Beginner
English | mp4 | H264 1280x720 | AAC 2 ch | 165 MB
eLearning, iOS | Level: Beginner
Two of Swift’s most novel features over Objective-C are the extended power of enumerations and the language features to deal with nil values. In this course we’re going to start by exploring enumerations in Swift - how they can define a set of related values, how they can carry associated values and how they make our code much safer by bringing in some wonderful compiler support. After that we take a look at optionals and dealing with nil values. Working with optionals can get pretty confusing so we understand why we do this in the first place and how we can unwrap the values when we need them.
What you'll learn
- Enumerations
- Associated Values
- Optionals
- Unwrapping Optionals
- Optional Chaining
- Pattern Matching
Screenshots: