In my app I have custom annotations where the leftCalloutAccessoryView
is a circular UIView
. This works perfectly in the simulator with this code:
let rideTimeView = UIView()
rideTimeView.frame = CGRectMake(5, 5, 50, 50)
rideTimeView.layer.cornerRadius = 25
The problem arises when I run the app on actual devices. It works fine on (I believe) 6 and 6 Plus, but overlaps at the bottom on 4 and 5.
Is there any way I can get the dimensions of the annotation?