I am receiving a few crash reports from a live version of my app. They all are focused around the following lines of code in update location. Please let me know if you see anything wrong with it. All reports specifically point to the reverseGeocodeLocation portion. Thanks for any help you can provide.
inteal func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
locationManager?.stopUpdatingLocation()
CLGeocoder().reverseGeocodeLocation(manager.location!, completionHandler: {(placemarks, error)-> Void in
if placemarks!.count > 0 {
self.locationManager?.stopUpdatingLocation()
let pm = placemarks![0]
self.displayLocationInfo(pm)
let location = locations[0]
self._didComplete(location, error: nil)
}
})
}
