你如何制作CLLocationDegrees?它不是浮动的,它是什么?
答案 0 :(得分:17)
根据CLLocation
documentation,CLLocationDegrees
只是一个双倍。所以要创建一个,你可以做一些简单的事情:
CLLocationDegrees degrees = 45;
答案 1 :(得分:9)
CLLocationDegrees是typedefed double:http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html#//apple_ref/doc/uid/TP40007126-CH3-SW19
ex:CLLocationDegrees myDegrees = 2.313224;