Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open settings from my iPad application (Objective-C) [duplicate]

I've tried using:

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

And options trading all you see here:

examples

But I can not make it work.

like image 445
jose920405 Avatar asked Aug 28 '14 22:08

jose920405


1 Answers

Apple no longer allows developers to open the Settings application from within their apps (iOS 5.1 and later).

EDIT

According to @Mike's comment below, this can be done in iOS 8+

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

Using this prior to iOS 8 will result in a crash, however.

like image 155
rebello95 Avatar answered Oct 04 '22 21:10

rebello95