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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access