I'm looking for a solution to display a view when I select a mkannotation in my map. In the image:
If you selected a mkannotation, it is displayed the view that in the bottom. I have a way but I don't know if it's the best. It's just display the view under the map, like subview of the general view, but the problem I see it's that it was above the map, hiding a part of this, and I don't know how to detect that the user click on the map to hide the view of the profile.
Thanks in advance
Edit 1. With this code, I get errors, and if I fix it add .view to the errors, these disappear, but then when I select a mkannotation it doesn't appear nothing.