Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

4. Using Maps in your iOS apps MapKit > Time for action — using MapKit in your ...

Time for action — using MapKit in your app

We will use the Hello Location application we saw in Chapter 3, the one that uses location updates in our app, so that we can change the map display as the location changes. The following diagram should give you an idea of our app behavior:

Time for action — using MapKit in your app

We modify the Hello_LocationViewController.xib file to make our app look more professional as follows:

  1. Add a UINavigationBar to your application's NIB file. Create another view by dragging it from the Toolbox onto the NIB file. Your app should now look like the following screenshot; do not get confused with the UIView already present. What we will be learning is superimposing another UIView (for this example, it will contain the map) onto the Main UIView of the application.
    Time for action — using MapKit in your app

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint