<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 键盘?

      时间:2023-06-12
      <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 键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Swift导航栏背景颜色白色不起作用 下一篇:在 iOS7 中删除后退箭头

                相关文章

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

                1. <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>