O'Reilly logo

Xcode 4 Cookbook by Steven F. Daniel

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

Building a simple CoreLocation application

In this recipe we will learn how to build the user interface for our Core Location project.

Getting ready

In this section we will start by building the components that will comprise of our user interface for our CoreLocation application.

How to do it...

To begin, follow these simple steps as outlined in the following order:

  1. Select ViewController.xib file from the Project Navigator section.
  2. From Object Library, select and drag a (UIToolbar) toolbar control, and add this to the top of the view and select the Item button located within our toolbar that we previously added.
  3. From the Attributes Inspector section, change the value of Title to Change Map.
  4. Next, from Object Library, select and drag a (MKMapView) map ...

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