Answer the question
In order to leave comments, you need to log in
Why is CLLocationManager() ( swift ) in Xcode giving wrong coordinates?
Greetings. Need help in the following situation:
1. Situation: an iOS application written in Xcode on swift-e allows the site opened in UIWebView https:// to fix geo-coordinates, made from the docks from the Internet:
in info.plist I registered Location Always Usage Description and Location When In Use Usage Descprition
in ViewCOntroller.swift is written:import CoreLocation
class ViewController: ... , CLLocationManagerDelegate {
...
let locationManager = CLLocationManager()
...
override func veiwDidLoad(){
...
locationManager.delegate = self
locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters
locationManager.startUpdatingLocation()
...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question