mapbox/mapbox-ios-sdk — pull request #513 by maciekish (2014-09-25 14:29:57+00:00)
Title: Check status before stacking user location

If you start tracking the user location with a denied or restricted status on iOS 8, the system alert asking you to go to settings will appear, and then MapBox code will call stopUpdatingUserLocation and the alert will go away a moment later. It looks very annoying and according to the Core Location documentation you should not attempt to use the framework if the status is denied or restricted, so i added this check.