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

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

          <bdo id='iBvXH'></bdo><ul id='iBvXH'></ul>
        <tfoot id='iBvXH'></tfoot>

        NavigationItem iOS 11 Apple 方式中的 UISearchController

        时间:2023-06-10
          <bdo id='kk4eF'></bdo><ul id='kk4eF'></ul>
              <tbody id='kk4eF'></tbody>
            <tfoot id='kk4eF'></tfoot>

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

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

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

                  本文介绍了NavigationItem iOS 11 Apple 方式中的 UISearchController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 iOS 11 中,Apple 提供了新的搜索栏,但在 iOS 11.2.2 中,当两个视图控制器都有 searchController 时,开发人员会出现 pushpop 动画错误.Apple 在文件应用程序中展示了他们的愿景.有人知道怎么做吗?

                  In iOS 11 Apple presented new search bar, but yet in iOS 11.2.2 developer have pushpop animation bug when both view controllers have searchController. Apple demonstrate their vision in Files app. Do someone know how do it?

                  编辑#1

                  动画损坏的问题.

                  你可以在 ViewController 中添加一些代码 -viewDidLoad 一些代码行用于导航栏中的搜索栏

                  you can add some line of code in ViewController -viewDidLoad some line of code for search bar in navigation bar

                  self.navigationController?.navigationBar.prefersLargeTitles = true
                  self.navigationItem.largeTitleDisplayMode = .automatic
                  let search = UISearchController(searchResultsController: nil) // Declare the searchController
                  self.navigationItem.searchController = search
                  

                  这篇关于NavigationItem iOS 11 Apple 方式中的 UISearchController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:无需返回按钮即可推送到 ViewController 下一篇:如何将导航控制器添加到基于视图的应用程序中?

                  相关文章

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

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

                      <tfoot id='kQPnJ'></tfoot>
                        <bdo id='kQPnJ'></bdo><ul id='kQPnJ'></ul>

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