Chapter 12

Protocols and Delegates

Congratulations! You are acquiring the skills to become an iOS developer! However, there are two additional topics that iOS developers need to understand to be successful: protocols and delegates. It is not uncommon for new developers to get overwhelmed by these topics, so we thought it best to introduce the foundation topics of the Objective-C language first.

Multiple Inheritance

We discussed object inheritance in Chapter 1. In a nutshell, object inheritance means that a child can inherit all the characteristics of its parent. See Figure 12–1.

images

Figure 12–1. Typical Objective-C inheritance

C++, Perl, and ...

Get Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.