In the file for the MapViewController import UIKit UIKit the following

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
//In the .h file for the MapViewController
#import <UIKit/UIKit.h>
//the following framework must be added to the project
//click on Frameworks in the project window directory view
//on the left side, then select Actions > Add > Existing Frameworks
#import <MapKit/MapKit.h>
@interface MapViewController : UIViewController <MKMapViewDelegate> {
MKMapView *mapView;
NSMutableArray *busStopAnnotations;
}
@property(nonatomic,retain) IBOutlet MKMapView *mapView;
@property(nonatomic,retain) NSMutableArray *busStopAnnotations;
@end