danielebogo / DBPrivacyHelper

Quick tool to explain the right place to enable your privacy settings
MIT License
434 stars 60 forks source link

Add link to open in Settings #2

Closed sachinkesiraju closed 9 years ago

sachinkesiraju commented 9 years ago

For devices on iOS 8, the privacy helper could feature a button that'll let the user open the Settings.app so they can modify permissions using:

NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
   [[UIApplication sharedApplication] openURL:url];
}

Although this won't directly open up the privacy section in settings, it'll at least save the user the step of having to navigate to the settings outside the app.

danielebogo commented 9 years ago

Hi @sachinkesiraju , i don't understand. You suggest to alert the user that on iOS 8 it is possible to change the privacy with Settings.app? Because, by default, on iOS 8, this library open the Settings.app. You can force to view the "step by step" help.

sachinkesiraju commented 9 years ago

Hi Daniel,

What I was really suggesting was adding a button to DBPrivateHelperController to open in Settings as an alternative to directly opening settings when useDefaultSettingPane is set to YES. What do you think?

Thanks, Sachin

danielebogo commented 9 years ago

@sachinkesiraju i don't know.Maybe depends by the context you use the library. I need to think if this can be a good improvement. Thank you for the suggest.