I am still kind of new to Swift so you'll have to bear with me!
I have gathered my current location coordinates with PFGeoPoint from Parse which are of type NSNumber. I now need to convert them into a CLLocation type so I can use them inside a map view. Can somebody please show me how to do it?
Thanks in advance.
Create a new CLLocation
instance with:
var loc = CLLocation (latitude: <the lat>, longitude: <the lon>)
You'll get <the lat>
and <the lon>
, both in degrees, from PFGeoPoint
.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments