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..
Did you remember to #import <MapKit/MapKit.h>
?