ios - MapkIt coordinates being changed -
trying plot things on mapkit map lat , lng being passed in being changed?
i pass in lat of 39.34343 , gets changed 7.33121668909306e-304?
what doing wrong?
cllocationcoordinate2d coordinate; coordinate.latitude = *(thing.lat); coordinate.longitude = *(thing.lng);
if "po coordinate.latitude" after above code, 7.33121668909306e-304
latitude
isn't object, it's double (typed cllocationdegrees
). can print int
or double
this:
// code int = 3; double doub = 2.3; // in debugger (lldb) print (int) (int) $1 = 3 (lldb) print (double) doub (double) $2 = 2.3
Comments
Post a Comment