I want to add an annotation to a MapView with a disclosure button, and I cannot figure it out.
I created a PlaceMark class that conforms to the MKAnnotation protocol, and then create a MapView and add PlaceMark:
PlaceMark *venuePlacemark = [[PlaceMark alloc] initWithCoordinate:location];
venuePlacemark.locationTitle = [locationDictionary valueForKey:VENUE_NAME_KEY];
venuePlacemark.locationSubtitle = @"Touch to show in Google Maps";
[venueMap addAnnotation:venuePlacemark];
[venueMap setRegion:region animated:TRUE];
[venueMap regionThatFits:region];
All this works, and it displays the output, which when touched displays the correct call text. I can’t figure out how to add a disclosure button to a call. Sorry if this is basic and any help would be appreciated.
Dave
source
share