0

I am trying to open setting from my app in a button action, I know the following code works but how can I do similar thing on iOS 9?

  [[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"General&path=Network/VPN"]];

Or is there any other way to open setting page from app?
If it is not possible can I open Wifi setting?

Found the solution:

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Safari"]];
Niloufar
  • 512
  • 1
  • 5
  • 24

1 Answers1

2

You can do like this to open settings page from your app

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
Uma Madhavi
  • 4,851
  • 5
  • 38
  • 73