Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find protocol declaration MKAnnotation

The code is:

@interface RouteMapAnnotation : NSObject <MKAnnotation> 
{    
    CLLocationCoordinate2D  coordinate;
    NSString*               title;
    NSString*               subtitle;
}

@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@property (nonatomic, copy) NSString* title;
@property (nonatomic, copy) NSString* subtitle;

@end

Here's a snapshot of the error I have:

https://skitch.com/kuntul/rws3c/smartrek-routemapannotation.h

What is wrong? I've done this on the same exact project and it works..

like image 891
aherlambang Avatar asked Mar 15 '11 01:03

aherlambang


1 Answers

Did you remember to #import <MapKit/MapKit.h>?

like image 169
Anomie Avatar answered Sep 27 '22 20:09

Anomie