How to open preferences/settings with iOS 5.1?

前端 未结 4 1539
日久生厌
日久生厌 2020-11-27 15:32

Looks like iOS 5.1 has broken the standard URL encoding for navigating a user to a Preference.

For example:

[[UIApplication sharedApplication] openUR         


        
4条回答
  •  感动是毒
    2020-11-27 16:05

    No I don’t know a way to replicate this functionality.

    But what you can do is file a Radar requesting the restoration. Here is a radar requesting that the schemes be documented in the first place.

    David Barnard has confirmed that iOS 5.1 breaks the settings apps URL schemes.


    Update: iOS 8 has similar functionality for opening your app’s settings. Thanks Apple, Mike and Soto_iGhost.

    The constant UIApplicationOpenSettingsURLString (UIApplication Documentation) will open the settings for your app and not, say Twitter’s settings. Not exactly the same functionality but much cleaner than before and now officially recognized.

    This should be extra useful now that each app has a place in Settings for using privacy, cellular data, background app refresh and notifications.

提交回复
热议问题