Core Location
suggest changeSyntax
- desiredAccuracy
- distanceFilter
- requestLocation()
- startUpdatingLocation()
- allowDeferredLocationUpdates(untilTraveled:timeout:)
- startMonitoringSignificantLocationChanges()
- requestWhenInUseAuthorization()
- requestAlwaysAuthorization()
- locationManager(_:didChangeAuthorization:)
requestWhenInUseAuthorization() and requestAlwaysAuthorization() prompt for access. The resulting CLAuthorizationStatus is authorizedWhenInUse or authorizedAlways.
Remarks
Simulate a Location at Runtime
- Run the app from Xcode.
- In the debug bar, click the “Simulate location” button.
- Choose a location from the menu.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents