i have an map that has a few hundred MKPointAnnotations and have been set up to have a left and right callout accessory, the issue i am having is finding a way to perform an action that is specific to that annotation
for example if someone presses a specific annotation i want to go to a new viewController that has detailed information about were the annotation is. I have setup a custom object that conforms to the MKAnnotation so all the data is contained into the annotation as such...
@synthesize coordinate;
@synthesize _title;
@synthesize _date;
@synthesize _description;
@synthesize _coordinates;
- (CLLocationCoordinate2D)coordinate;{
CLLocationCoordinate2D theCoordinate;
theCoordinate.latitude = _coordinates.latitude;
theCoordinate.longitude = _coordinates.longitude;
return theCoordinate;
}
- (NSString *)title {
return _title;
}
- (NSString *)subtitle {
return _description;
}
- (void)dealloc {
[super dealloc];
[_description release];
[_date release];
[_title release];
}
can anyone help me with this please :D