开发者

CLLocationDegrees initialization

开发者 https://www.devze.com 2022-12-24 20:14 出处:网络
How do you make a CLLocationDegrees? It\'s not a float, 开发者_JAVA百科so what is it?According to the CLLocation documentation, CLLocationDegrees is simply a double. So to create one, you could do som

How do you make a CLLocationDegrees? It's not a float, 开发者_JAVA百科so what is it?


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;


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;

0

精彩评论

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

关注公众号