December 2018
Intermediate to advanced
414 pages
10h 19m
English
Delegation is one of the most common design patterns when working with Apple SDKs. Delegation is a pattern that facilitates the communication between two objects, the first one, which we'll call the source and the other, the delegate. The source can be anything from a view, such as UITableView / UITableViewDelegate, or a manager, such as CLLocationManager / CLLocationManagerDelegate.
In every case, the delegation pattern facilitates a many-to-one communication. A single delegate can handle as many sources as needed; however, a source can only have one and only one delegate.
Read now
Unlock full access