CLLocationCoordinate2DMake behavior

ok im trying to deal with something strange and I don't know if only me can

im trying to use

CLLocationCoordinate2D newCoord = CLLocationCoordinate2DMake(54.607313, -1.292585); 

if I write it as if it works fine, but if I try to use

 CLLocationCoordinate2D newCoord = CLLocationCoordinate2DMake(lat, lng); 

(lat and lng values โ€‹โ€‹passed from previous vc) i do not work. I can leave the rooms and they are the same.

society [1703: 307] 1.052294 society [1703: 307] 1.052294

Am I doing something stupid?

+4
source share
1 answer

ok, yes, I did something stupid, and just to point it out, remember that when working with coordinates the โ€œ-โ€ symbol is a very important symbol

: ABOUT

+2
source

Source: https://habr.com/ru/post/1343791/


All Articles