Core Location + allow to use your current Location?
In my application corelocation manager updates the current location more than once by calling "startUpdatingLocation" method.
When i run the application on device it behaves differently on different devices.
On iPod touch with iOS 3.0 it asks "Application would like to use your current location" every time i call [locationManager startUpdatingLocation]; till i don't press allow button in alert view.
But on other device iPhone3G with iOS 4.0.2 it does not show alert "application would like to use your current location" every time. It asks for only once. if i select "DontAllow" then also it does not ask again when i call [locationManager startUpdatingLocation]; again where in case of iPod 开发者_开发问答it does.
Also in simulator with iOS 4.0.2 it ask every time till you don't select "allow" in alert view.
The confirmation prompt will be shown three times by the OS. If the user says "OK" all three times, the OS figures they don't need to be asked again. If the user says "No" to any of them, they also won't be asked again. You can control access at a per-application level by going into Settings > General > Location Services.
I believe you can reset the IOS Simulator by going to IOS Simulator >> Reset Contents and Settings.
Alternatively on the i-phone simply delete the application and reinstall, that should clear all settings for it as well.
精彩评论