Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As mentioned by <a href="https://stackoverflow.com/a/24952919/418715">Karan Dua</a> this is <a href="https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS8.html" rel="nofollow noreferrer">now possible in iOS8</a> using <code>UIApplicationOpenSettingsURLString</code> see <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/c/data/UIApplicationOpenSettingsURLString" rel="nofollow noreferrer">Apple's Documentation</a>.</p> <p><strong>Example:</strong></p> <p><strong>Swift 4.2 (BETA)</strong></p> <pre><code>UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!) </code></pre> <p><em>In Swift 3:</em></p> <pre><code>UIApplication.shared.open(URL(string:UIApplicationOpenSettingsURLString)!) </code></pre> <p><em>In Swift 2:</em></p> <pre><code>UIApplication.sharedApplication().openURL(NSURL(string:UIApplicationOpenSettingsURLString)!) </code></pre> <p><em>In Objective-C</em></p> <pre><code>[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; </code></pre> <p><strong>Prior to iOS 8:</strong></p> <p>You can not. As you said this has been covered many times and that pop up asking you to turn on location services is supplied by Apple and not by the App itself. That is why it is able to the open the settings application.</p> <p>Here are a few related questions &amp; articles:</p> <p><a href="https://stackoverflow.com/questions/1090373/is-it-possible-to-open-settings-app-using-openurl">is it possible to open Settings App using openURL?</a></p> <p><a href="https://stackoverflow.com/questions/736047/programmatically-opening-the-settings-app-iphone">Programmatically opening the settings app (iPhone)</a></p> <p><a href="https://stackoverflow.com/questions/4092162/how-can-i-open-the-settings-app-when-the-user-presses-a-button">How can I open the Settings app when the user presses a button?</a></p> <p><a href="https://stackoverflow.com/questions/3113391/iphone-opening-application-preferences-panel-from-app">iPhone: Opening Application Preferences Panel From App</a></p> <p><a href="https://stackoverflow.com/questions/2127769/open-uipickerview-by-clicking-on-an-entry-in-the-apps-preferences-how-to">Open UIPickerView by clicking on an entry in the app&#39;s preferences - How to?</a></p> <p><a href="https://stackoverflow.com/questions/4942974/open-settings-app">Open the Settings app?</a></p> <p><a href="https://www.natashatherobot.com/ios-taking-the-user-to-settings/" rel="nofollow noreferrer">iOS: You’re Doing Settings Wrong</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload