如何用iOS 5.1打开首选项/设置? [英] How to open preferences/settings with iOS 5.1?

查看:106
本文介绍了如何用iOS 5.1打开首选项/设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来iOS 5.1已经打破了将用户导航到偏好的标准网址编码。

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

例如:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=TWITTER"]];

适用于iOS 5.0,但不适用于iOS 5.1(设备和模拟器)。

Works in iOS 5.0 but not in iOS 5.1 (both device and simulator).

有没有人找到在iOS 5.1中复制此功能的方法?

Has anyone found a way to replicate this functionality in iOS 5.1?

推荐答案

不,我不知道如何复制此功能。

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

但您可以做的是提交请求恢复的Radar。 这是一个雷达,要求首先记录这些方案。

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 已确认iOS 5.1打破了设置应用程序URL方案。

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

更新 iOS 8具有类似功能,用于打开应用程序的设置。感谢Apple, Mike Soto_iGhost

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

常数 UIApplicationOpenSettingsURLString (UIApplication Documentation)将打开您的应用程序的设置,而不是Twitter的设置。不完全相同的功能,但比以前更清洁,现在官方认可。

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.

这篇关于如何用iOS 5.1打开首选项/设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆