O'Reilly logo

Pro Objective-C Design Patterns for iOS by Carlo Chung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Façade

You don't feel you want to drive today, so you call up a taxicab. You don't really care what the make or model of the cab is as long as it can take you to the destination you want to go to. The first thing you'd say to the cab driver is "Take me to X," where X is the place where you wanted to go. Then the cab driver begins with a sequence of actions to "execute" the "command" (releases the brakes, changes gears, presses the accelerator, etc.). The cab driver abstracts away all the bells and whistles of the underlying complexity of operating a car. He decouples you from the originally complicated interfaces to operate the vehicle by offering the driving service (a simplified interface). The interface between the cab driver and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required