Syntax

  1. desiredAccuracy
  2. distanceFilter
  3. requestLocation()
  4. startUpdatingLocation()
  5. allowDeferredLocationUpdates(untilTraveled:timeout:)
  6. startMonitoringSignificantLocationChanges()
  7. allowDeferredLocationUpdates(untilTraveled:timeout:)
  8. authorizedAlways
  9. authorizedWhenInUse
  10. locationManager(_:didChangeAuthorization:)

Remarks

Simulate a Location at Runtime

  1. Run the app from Xcode.
  2. In the debug bar, click the “Simulate location” button.
  3. Choose a location from the menu.

http://i.stack.imgur.com/e02nU.png