Swift: Corelocation handling NSError in didFailWithError
问题 I'm using CoreLocation to successfully determine the user's location. However when i try to use the CLLocationManagerDelegate method: func locationManager(_ manager: CLLocationManager!, didFailWithError error: NSError!) I run into problems with the error term. func locationManager(manager: CLLocationManager!, didFailWithError error: NSError!) { println("didFailWithError \(error)") if let err = error { if err.code == kCLErrorLocationUnknown { return } } } This results in a 'Use of unresolved