is there a way to load mapKit facing south instead of north in swift 2?
I have tried MKMapCamera and looked at apple documentation but nothing I have read or tried is working.
Thanks in advance.
is there a way to load mapKit facing south instead of north in swift 2?
I have tried MKMapCamera and looked at apple documentation but nothing I have read or tried is working.
Thanks in advance.
Copyright © 2021 Jogjafile Inc.
The following Swift code creates an
MKMapCamera
object with a heading of 180°, which orients the map to face South:The
heading
property of anMKMapCamera
controls the compass angle the map will face. 0° is North, 45° is North East, 90° is East, and so on.If you have a view controller with an IB outlet to an
MKMapView
object, you can add the above code to theviewDidLoad
method: