func locationManager(manager: CLLocationManager!, didUpdateLocations locations: [AnyObject]!) {
var user_lat = manager.location.coordinate.latitude
var user_long = manager.location.coordinate.longitude
self.locationManager.stopUpdatingLocation()
}
我試過String(manager.location.coordinate.latitude)
但這似乎並不奏效。如何將CoreLocation座標轉換爲字符串?
爲什麼你不能使用字符串格式化? – 2015-04-06 06:33:46
@AnushaK直到現在我還不知道格式化程序是什麼:/ – TIMEX 2015-04-06 07:15:01