Add a UIView at specific coordinates to a MKMapView

I want to add a UIView to fixed coordinates on the mapview like a annotation. To be more specific the UIView should stay fixed at these coordinates on the mapview when the mapview is in interaction (moving, zooming, etc.) exactly the same like a annotation does it.

I tried to solve it with MKMapPoint but without success.

Hope someone has a tipp!


As I understand you want to use custom annotatin view. There is an answer for that question. I dont think you can use a UIView as you described.

How to create Custom MKAnnotationView and custom annotation title and subtitle

Need Your Help

Android TabLayout fragment - vertical scroll

android android-layout android-fragments tabs android-viewpager

I have a (support.v4) TabLayout with ViewPager that loads 3 tabs, but there's a strange issue on first load of tab layout - first tab doesn't properly scale vertically, so the bottom of fragment's ...

How do I left join tables in unidirectional many-to-one in Hibernate?

java hibernate orm many-to-one

I'm piggy-backing off of How to join tables in unidirectional many-to-one condition?.