Commit 70b236e2 authored by Ariba Siddiqui's avatar Ariba Siddiqui
Browse files

more alerts

parent 0ef0350c
No preview for this file type
......@@ -65,12 +65,12 @@ class ViewController: UIViewController {
locationManager.startUpdatingLocation()
break
case .denied:
// Show alert instructing them how to turn on permissions
displayAlert(alertTitle: "Unable to access location", alertMessage: "The app does not have access to location because the user denied")
break
case .notDetermined:
locationManager.requestWhenInUseAuthorization()
case .restricted:
// Show an alert letting them know what's up
displayAlert(alertTitle: "Unable to access location", alertMessage: "The app does not have access to location because of Device Settings(like Parental Controls)")
break
case .authorizedAlways:
break
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment