Open Twitter settings in Settings app

后端 未结 6 1723
野的像风
野的像风 2020-12-28 09:02

I know I can open the settings app in iOS 5 using

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"prefs://\"]];

but is

6条回答
  •  生来不讨喜
    2020-12-28 09:22

    I found out that the root value is the key of the localized string found in the "Settings.strings" file of the Preferences.app. Here are some values that I tested to work:

    General: General
    iCloud: CASTLE
    Mail: ACCOUNT_SETTINGS
    Twitter: TWITTER
    Safari: Safari
    Music: MUSIC
    Video: VIDEO
    Photos: Photos
    Notes: NOTES
    Store: STORE

    However I can't figure out how to do this with my own app's settings.
    prefs:root=Apps&path= seems not to work.

提交回复
热议问题