1
如何將CLLocation轉換爲CLLocationDegrees,以便我可以創建CLLocationCoordinate2D結構?將CLLocation轉換爲CLLocationDegrees
如何將CLLocation轉換爲CLLocationDegrees,以便我可以創建CLLocationCoordinate2D結構?將CLLocation轉換爲CLLocationDegrees
從CLLocation的coordinate
屬性直接獲取CLLocationCoordinate2D
即可。
myLocationCoordinate2D = myLocation.coordinate;
CLLocation.coordinate屬性將返回CLLocationCoordinate2D爲您服務。無需做任何轉換。
它是CLLocation還是CLLovation? – 2012-02-16 05:05:57