mapbox / ios-sdk-examples

Live example code for the Mapbox iOS SDK
https://www.mapbox.com/ios-sdk/examples/
Other
95 stars 35 forks source link

mapView: annotation: annotation calloutAccessoryControlTapped: not called if self.mapView set in Interface Builder #391

Closed ghost closed 4 years ago

ghost commented 4 years ago

https://github.com/mapbox/ios-sdk-examples/blob/0e2c8ce878de500f36c4168f7a1e62041c8adbdf/Examples/ObjectiveC/DefaultCalloutExample.m#L16

In the example the MapView is instantiated in code. If self.mapview is set in Interface builder instead, the annotations work as expected, but the accessory control buttons does not call the above protocol method.

ghost commented 4 years ago

Annotations work, but not the accessory control buttons when there is a layer above the MapView. Disabling user interactions on this layer helps...