4Delegation and Core Location
In this chapter, we will introduce delegation, a recurring design pattern of Cocoa Touch development and the Core Location framework, which provides the location-finding features of iOS. In addition, we will also take a quick look at how to use the debugger that Xcode provides to find and fix problems in your code.
To learn about delegation, you’re going to write an application called Whereami that uses delegation over and over again. This application will display an interactive map and allow the user to tag the current location with a pin and a title. This exercise spans two chapters. At the end of this chapter, the application won’t look like much, but the final product – and the clearer understanding of delegation ...
Get iOS Programming: The Big Nerd Ranch Guide, 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.