CLLocationDegrees initialization

后端 未结 2 689
慢半拍i
慢半拍i 2020-12-31 11:30

How do you make a CLLocationDegrees? It\'s not a float, so what is it?

2条回答
  •  长情又很酷
    2020-12-31 11:58

    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;

提交回复
热议问题