Reputation: 12627
When I run first time my app it asks me "Would you like to use your current location?" I called this pop-up with [СLLocationManager startUpdatingLocation];
. Can I request this pop-up using plist or another way?
Upvotes: 0
Views: 1083
Reputation: 12106
I'm not sure what you mean by using a plist - a plist is a data structure, not an event or method. When you start the CLLocationManager, it needs to check with the user if it can use the device's current location. If the user has already answered "NO" to the "use current location" question twice, it will not ask anymore. This setting is stored on the device, and can be reset in the Settings app.
But this dialog is spawned and controlled by the os, so you cannot invoke it any other way.
You can, however, write your own pop-up message with any contents you like any time you like, using UIAlertView.
Upvotes: 2