How do you make a CLLocationDegrees? It's not a float, so what is it?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
According to the CLLocation
documentation, CLLocationDegrees
is simply a double. So to create one, you could do something as simple as this:
CLLocationDegrees degrees = 45;
回答2:
CLLocationDegrees are typedefed doubles: 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;