<bdo id='cYVLa'></bdo><ul id='cYVLa'></ul>

  1. <small id='cYVLa'></small><noframes id='cYVLa'>

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

      <legend id='cYVLa'><style id='cYVLa'><dir id='cYVLa'><q id='cYVLa'></q></dir></style></legend>
    1. 如何从 MODAL 视图控制器中隐藏 iPad 键盘?

      How to HIDE the iPad keyboard from a MODAL view controller?(如何从 MODAL 视图控制器中隐藏 iPad 键盘?)
      <i id='fSAfF'><tr id='fSAfF'><dt id='fSAfF'><q id='fSAfF'><span id='fSAfF'><b id='fSAfF'><form id='fSAfF'><ins id='fSAfF'></ins><ul id='fSAfF'></ul><sub id='fSAfF'></sub></form><legend id='fSAfF'></legend><bdo id='fSAfF'><pre id='fSAfF'><center id='fSAfF'></center></pre></bdo></b><th id='fSAfF'></th></span></q></dt></tr></i><div id='fSAfF'><tfoot id='fSAfF'></tfoot><dl id='fSAfF'><fieldset id='fSAfF'></fieldset></dl></div>
          <tbody id='fSAfF'></tbody>
        <tfoot id='fSAfF'></tfoot>

        <small id='fSAfF'></small><noframes id='fSAfF'>

        <legend id='fSAfF'><style id='fSAfF'><dir id='fSAfF'><q id='fSAfF'></q></dir></style></legend>

                <bdo id='fSAfF'></bdo><ul id='fSAfF'></ul>
                本文介绍了如何从 MODAL 视图控制器中隐藏 iPad 键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我试图从模态视图控制器中隐藏 iPad 键盘,但它不起作用.我已经尝试过 resignFirstResponder ,但是如果我们在模态视图控制器中,这不会有任何影响.我在具有相同 UIViewController 的非模态 UINavigationController 中尝试了 resignFirstResponder 并且键盘隐藏正确.

                I'm trying to hide the iPad keyboard from a modal view controller but it doesn't work. I have tried resignFirstResponder but that doesn't have any affect if we are in a modal view controller. I tried resignFirstResponder in a non-modal UINavigationController with the very same UIViewController and the keyboard hides correctly.

                有人知道怎么解决这个问题吗?

                Does anyone know how solve this problem?

                谢谢.

                [更新] 我的代码似乎有问题,因为 resignFirstResponder 确实有效(我做了一个简单的测试用例而不是使用我的代码).但我还是不知道问题出在哪里.

                [Update] it looks like there's something wrong with my code because the resignFirstResponder does work (I made a simple test case instead of using my code). But I still don't know what the problem is.

                推荐答案

                因为我用的是 UIModalPresentationFormSheet.所有其他的都按预期工作....浪费了几个小时.

                It was because I was using UIModalPresentationFormSheet. All of the other ones work as expected.... Wasted several hours on that.

                这篇关于如何从 MODAL 视图控制器中隐藏 iPad 键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone(UISplitViewController 内的 UITabBarController 内的 UINavigationController 以模态方式呈现在 iPhone 上) - IT屋-程序员软件开发技术分
                ViewController in UINavigationController orientation change(UINavigationController 中的 ViewController 方向更改)
                Custom back button in UINavigationController(UINavigationController 中的自定义后退按钮)
                How to get the previous viewcontroller that pushed my current view(如何获取推送我当前视图的上一个视图控制器)
                The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)
                Show UITabBar when UIViewController pushed(推送 UIViewController 时显示 UITabBar)

                <small id='wgTec'></small><noframes id='wgTec'>

                    <tfoot id='wgTec'></tfoot>
                    • <bdo id='wgTec'></bdo><ul id='wgTec'></ul>

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