开发者

CLLocationCoordinate2DMake behaviour

开发者 https://www.devze.com 2023-02-17 03:27 出处:网络
ok im trying to deal with something strange and i don\'t know if its just me im trying to use CLLocationCoordinate2D newCoord = CLLocationCoordinate2DMake(54.607313, -1.292585);

ok im trying to deal with something strange and i don't know if its just me

im trying to use

 CLLocationCoordinate2D newCoord = CLLocationCoordinate2DMake(54.607313, -1.292585);

if i write it like this it works fine, but if i try to use

CLLocationCoordinate2D newCoord = CLLocationCoordinate2DMake(lat, lng);

(lat and lng values passed fro开发者_JAVA百科m previous vc) i does not work. i can log out the numbers and they are the same.

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

am i doing something silly?


ok , yes i was doing something stupid, and just to point it out remember when working with coords the "-" is a very important symbol

:O

0

精彩评论

暂无评论...
验证码 换一张
取 消