The action is described in
mapView:notationView:calloutAccessoryControlTapped: so that the action is taken when you click the callout now.
However, the button type displayed in pin.rightCalloutAccessoryView is
There are only two types of , and they do not appear in UIButtonTypeCustom.
How can I put my favorite button in the balloon and calloutAccessoryControlTapped:ios objective-c mapkit
frame is probably zero, so it's actually added, but I can't see it (of course I can't even tap it).
Instead of generating and substituting it directly as it says, you can display the buttons of your choice by setting
frame to change colors or set images if necessary.
© 2022 OneMinuteCode. All rights reserved.