Working with the different map types

In this recipe we will learn how to change between the different map views.

Getting ready

In this section we will start by implementing the method that will be responsible for handling changing of the different map views that the MapKit framework provides.

How to do it...

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

  1. Open the ViewController.h interface file from the Project Navigator section.
  2. Next, modify the interface file as shown by the highlighted code sections in the following code snippet:
    // ViewController.h // CoreLocation // Created by Steven F Daniel on 23/10/12. // Copyright (c) 2012 GenieSoft Studios. All rights reserved. #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> #import ...

Get Xcode 4 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.