I have a MKMapView
mainMap
in square proportion and its width is equal to the iPhone screen width. I make it circular by using:
mainMap.layer.cornerRadius = mainMap.frame.width/2
mainMap.clipsToBounds = true
Now I have a UIButton
which is underneath the mapView
and it is only partially visible.
This all works great but when I tap the button, the tap is caught by the invisble part of the mapView.
Is there an additional step needed to make the invisible part of mapView not interfere with user interface?