• <tfoot id='7HsAb'></tfoot>
    <legend id='7HsAb'><style id='7HsAb'><dir id='7HsAb'><q id='7HsAb'></q></dir></style></legend>

      1. <small id='7HsAb'></small><noframes id='7HsAb'>

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

        UINavigationItem titleView“如果设置了leftBarButtonItem则忽略"?

        UINavigationItem titleView quot;ignored if leftBarButtonItem is setquot;?(UINavigationItem titleView“如果设置了leftBarButtonItem则忽略?)

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

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

              <tfoot id='iebnr'></tfoot><legend id='iebnr'><style id='iebnr'><dir id='iebnr'><q id='iebnr'></q></dir></style></legend>
                <tbody id='iebnr'></tbody>
                  <i id='iebnr'><tr id='iebnr'><dt id='iebnr'><q id='iebnr'><span id='iebnr'><b id='iebnr'><form id='iebnr'><ins id='iebnr'></ins><ul id='iebnr'></ul><sub id='iebnr'></sub></form><legend id='iebnr'></legend><bdo id='iebnr'><pre id='iebnr'><center id='iebnr'></center></pre></bdo></b><th id='iebnr'></th></span></q></dt></tr></i><div id='iebnr'><tfoot id='iebnr'></tfoot><dl id='iebnr'><fieldset id='iebnr'></fieldset></dl></div>
                1. 本文介绍了UINavigationItem titleView“如果设置了leftBarButtonItem则忽略"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  UINavigationItem 的 titleView 属性文档 说:

                  The documentation for UINavigationItem's titleView property says:

                  如果 leftBarButtonItem 不为零,则忽略此属性."

                  "This property is ignored if leftBarButtonItem is not nil."

                  但是,我在测试中设置了 titleViewleftBarButtonItem 属性,它们看起来都很好.我已经在我的 Xcode 中的所有模拟器上进行了测试:4.3、5.0 和 5.1.有谁知道文档是错误的,还是在我无法测试的某些旧版本(例如 4.2、3.x)上正确?

                  However, I've set both the titleView and leftBarButtonItem properties in my testing and they both appear to show up fine. I've tested on all the simulators in my Xcode: 4.3, 5.0, and 5.1. Does anyone know if the documentation is just wrong, or is it correct on some older versions (e.g. 4.2, 3.x) that I haven't been able to test?

                  推荐答案

                  查看属性文档 leftBarButtonItems,上面写着:

                  Check the documentation for property leftBarButtonItems, it says:

                  如果没有足够的空间来显示数组中的所有项目,那些会重叠标题视图(如果存在)或按钮右侧的栏不显示.

                  If there is not enough room to display all of the items in the array, those that would overlap the title view (if present) or the buttons on the right side of the bar are not displayed.

                  所以,对于 titleView 的说法可能是不正确的.

                  So, what's said for titleView is probably incorrect.

                  这篇关于UINavigationItem titleView“如果设置了leftBarButtonItem则忽略"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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)
                2. <tfoot id='PyGwl'></tfoot>
                    <i id='PyGwl'><tr id='PyGwl'><dt id='PyGwl'><q id='PyGwl'><span id='PyGwl'><b id='PyGwl'><form id='PyGwl'><ins id='PyGwl'></ins><ul id='PyGwl'></ul><sub id='PyGwl'></sub></form><legend id='PyGwl'></legend><bdo id='PyGwl'><pre id='PyGwl'><center id='PyGwl'></center></pre></bdo></b><th id='PyGwl'></th></span></q></dt></tr></i><div id='PyGwl'><tfoot id='PyGwl'></tfoot><dl id='PyGwl'><fieldset id='PyGwl'></fieldset></dl></div>
                        • <bdo id='PyGwl'></bdo><ul id='PyGwl'></ul>

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

                            <tbody id='PyGwl'></tbody>
                          • <legend id='PyGwl'><style id='PyGwl'><dir id='PyGwl'><q id='PyGwl'></q></dir></style></legend>