I am developing a map view application. There should be annotations in the map view, but the pin should always be centered and the map should scroll under it. To do this, instead of adding annotations to the map, I added UIView(with the image of a pin code as a background) as a sub-view in the view controller's view. Now the map view and UIVieware in the same hierarchy. UIViewcentered and the card will scroll under it. (Is there a better solution?)
Now the problem I am facing is the callout accessory. I have a click event on UIViewwhere I can create another UIViewas an accessory for a leader. But what would be the best option for creating a callout accessory in my case. Any ideas are welcome.
source
share