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

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

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

    1. <legend id='FFc3d'><style id='FFc3d'><dir id='FFc3d'><q id='FFc3d'></q></dir></style></legend>
      1. 在 UINavigationController 上创建返回箭头形状的 leftBarButtonItem

        时间:2023-06-13
      2. <tfoot id='PFt20'></tfoot>
      3. <i id='PFt20'><tr id='PFt20'><dt id='PFt20'><q id='PFt20'><span id='PFt20'><b id='PFt20'><form id='PFt20'><ins id='PFt20'></ins><ul id='PFt20'></ul><sub id='PFt20'></sub></form><legend id='PFt20'></legend><bdo id='PFt20'><pre id='PFt20'><center id='PFt20'></center></pre></bdo></b><th id='PFt20'></th></span></q></dt></tr></i><div id='PFt20'><tfoot id='PFt20'></tfoot><dl id='PFt20'><fieldset id='PFt20'></fieldset></dl></div>

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

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

                1. <legend id='PFt20'><style id='PFt20'><dir id='PFt20'><q id='PFt20'></q></dir></style></legend>
                    <tbody id='PFt20'></tbody>
                  本文介绍了在 UINavigationController 上创建返回箭头形状的 leftBarButtonItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个带有导航控制器的视图,我正在模态显示,我想添加一个形状类似于大多数 splitViewControllers 中使用的默认左箭头按钮的后退按钮.

                  I have a view with a navigation controller that I am showing modally and I want to add a back button that is shaped like the default left arrow buttons used in most splitViewControllers.

                  我可以创建一个基本按钮,但我真的想要左箭头形状 - 这是我现在拥有的:

                  I can create a basic button but I really want the left arrow shape - here is what i have now:

                  /* set title and nav bar items */
                  self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Back To Thumbnails" style:UIBarButtonItemStylePlain target:self action:@selector(backToThumbnails:)] autorelease];
                  

                  我在这里只看到了 3 个样式选项?任何建议都非常感谢!

                  I only saw 3 options for style here? Any suggestions are greatly appreciated!

                  推荐答案

                  不幸的是,创建这样的按钮不属于公共 API,您需要自定义 带有图像的 UIBarButton.

                  Unfortunately creating a button like that is not apart of the public API, you'll need to make a custom UIBarButton with an image.

                  这篇关于在 UINavigationController 上创建返回箭头形状的 leftBarButtonItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:iOS14 navigationItem.largeTitleDisplayMode = .always 不工作 下一篇:UITableView 被 UITabBar 部分隐藏

                  相关文章

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

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

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