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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -