December 2014
Beginner
300 pages
8h 9m
English
If you peruse the Swift pseudo-code by Command+clicking protocols, you will see that a lot of them have optional requirements. For example, when you start a new project of any type, you can inspect UIApplicationDelegate, and you should see something like what Figure 8.1 shows.
Figure 8.1 The UIApplicationDelegate protocol.
You can see that most of the methods of this protocol are optional and therefore do not need to be implemented. You can mark any method as optional so that the compiler will not throw an error if a method is not implemented. Even though you can’t see it in Figure 8.1, you need to mark a protocol ...
Read now
Unlock full access