<legend id='XmYrI'><style id='XmYrI'><dir id='XmYrI'><q id='XmYrI'></q></dir></style></legend>
    <i id='XmYrI'><tr id='XmYrI'><dt id='XmYrI'><q id='XmYrI'><span id='XmYrI'><b id='XmYrI'><form id='XmYrI'><ins id='XmYrI'></ins><ul id='XmYrI'></ul><sub id='XmYrI'></sub></form><legend id='XmYrI'></legend><bdo id='XmYrI'><pre id='XmYrI'><center id='XmYrI'></center></pre></bdo></b><th id='XmYrI'></th></span></q></dt></tr></i><div id='XmYrI'><tfoot id='XmYrI'></tfoot><dl id='XmYrI'><fieldset id='XmYrI'></fieldset></dl></div>
    • <bdo id='XmYrI'></bdo><ul id='XmYrI'></ul>
  1. <small id='XmYrI'></small><noframes id='XmYrI'>

  2. <tfoot id='XmYrI'></tfoot>

    1. iOS 中的访问设置应用程序

      时间:2023-05-31
      <i id='8d2X4'><tr id='8d2X4'><dt id='8d2X4'><q id='8d2X4'><span id='8d2X4'><b id='8d2X4'><form id='8d2X4'><ins id='8d2X4'></ins><ul id='8d2X4'></ul><sub id='8d2X4'></sub></form><legend id='8d2X4'></legend><bdo id='8d2X4'><pre id='8d2X4'><center id='8d2X4'></center></pre></bdo></b><th id='8d2X4'></th></span></q></dt></tr></i><div id='8d2X4'><tfoot id='8d2X4'></tfoot><dl id='8d2X4'><fieldset id='8d2X4'></fieldset></dl></div>
        <tbody id='8d2X4'></tbody>

          <legend id='8d2X4'><style id='8d2X4'><dir id='8d2X4'><q id='8d2X4'></q></dir></style></legend>

          <small id='8d2X4'></small><noframes id='8d2X4'>

            • <bdo id='8d2X4'></bdo><ul id='8d2X4'></ul>
              <tfoot id='8d2X4'></tfoot>

              • 本文介绍了iOS 中的访问设置应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                是否有机会通过单击按钮在 iOS 中显示 settings.app?它应该适用于 iOS 5.1,因此prefs:root..." url 不是选项.

                Is there an opportinity to show up the settings.app in iOS by clicking on a button? It should work with iOS 5.1 so the "prefs:root..." url is no option.

                你知道如何解决这个问题吗?

                Do you have an idea how to solve this?

                推荐答案

                我知道这个问题具体是关于 5.1,但万一其他人有兴趣:

                I know the question is about 5.1 specifically, but in case anyone else is interested:

                从 iOS 8 开始,可以将用户从您的应用程序直接带到设置"应用程序.它们将深入链接到您应用的特定设置页面,但它们可以返回到顶级设置屏幕.

                As of iOS 8, it is possible to take a user from your app directly into the Settings app. They will be deep linked into your app's specific Settings page, but they can back out into the top level Settings screen.

                更新:

                感谢 Pavel 的评论,我简化了 if 语句并避免了 iOS 7 上的 EXC_BAD_ACCESS.

                Thanks to Pavel's comment, I simplified the if statement and avoided the EXC_BAD_ACCESS on iOS 7.

                更新 2:

                如果您的部署目标设置为 8.0 或更高版本,Xcode 6.3 会给您以下警告:

                If your deployment target is set to 8.0 or above, Xcode 6.3 will give you the following warning:

                Comparison of address of 'UIApplicationOpenSettingsURLString' not equal to a null pointer is always true
                

                这是因为该功能从 8.0 开始可用,因此该指针永远不会为 NULL.如果您的部署目标是 8.0+,只需删除下面的 if 语句即可.

                This is because the feature was available starting in 8.0, so this pointer will never be NULL. If your deployment target is 8.0+, just remove the if statement below.

                if (&UIApplicationOpenSettingsURLString != NULL) {
                    NSURL *appSettings = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
                    [[UIApplication sharedApplication] openURL:appSettings];
                } 
                

                这篇关于iOS 中的访问设置应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:使用 CoreImage 过滤图像会导致图像旋转 下一篇:如何根据 iOS 版本加载多个故事板文件?(5和6)

                相关文章

                最新文章

                <legend id='8u4VZ'><style id='8u4VZ'><dir id='8u4VZ'><q id='8u4VZ'></q></dir></style></legend>
                <tfoot id='8u4VZ'></tfoot>
              • <small id='8u4VZ'></small><noframes id='8u4VZ'>

                <i id='8u4VZ'><tr id='8u4VZ'><dt id='8u4VZ'><q id='8u4VZ'><span id='8u4VZ'><b id='8u4VZ'><form id='8u4VZ'><ins id='8u4VZ'></ins><ul id='8u4VZ'></ul><sub id='8u4VZ'></sub></form><legend id='8u4VZ'></legend><bdo id='8u4VZ'><pre id='8u4VZ'><center id='8u4VZ'></center></pre></bdo></b><th id='8u4VZ'></th></span></q></dt></tr></i><div id='8u4VZ'><tfoot id='8u4VZ'></tfoot><dl id='8u4VZ'><fieldset id='8u4VZ'></fieldset></dl></div>
                  <bdo id='8u4VZ'></bdo><ul id='8u4VZ'></ul>