خرید بک لینک

Vote count: 0

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)
        }
    })
}

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 15 فروردين 1395 ساعت: 12:31

صفحه بندی