如何将CLLocation类型的变量转换为String?

时间:2015-10-24 23:33:42

标签: ios swift core-location

我使用CoreLocation获取user's location并尝试将该位置存储在String

func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
    if let location = locations.first {
        currentLoc = location // Set location to currentLoc string
        print("Current location: \(location)")
    } else {
        // ...
    }
}

问题:如何将CLLocation类型转换为String

0 个答案:

没有答案