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

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

        UIBackButton背景图像未出现

        时间:2023-06-12
          <bdo id='w8rhp'></bdo><ul id='w8rhp'></ul>
          <i id='w8rhp'><tr id='w8rhp'><dt id='w8rhp'><q id='w8rhp'><span id='w8rhp'><b id='w8rhp'><form id='w8rhp'><ins id='w8rhp'></ins><ul id='w8rhp'></ul><sub id='w8rhp'></sub></form><legend id='w8rhp'></legend><bdo id='w8rhp'><pre id='w8rhp'><center id='w8rhp'></center></pre></bdo></b><th id='w8rhp'></th></span></q></dt></tr></i><div id='w8rhp'><tfoot id='w8rhp'></tfoot><dl id='w8rhp'><fieldset id='w8rhp'></fieldset></dl></div>
            <tbody id='w8rhp'></tbody>

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

          1. <legend id='w8rhp'><style id='w8rhp'><dir id='w8rhp'><q id='w8rhp'></q></dir></style></legend>

                  <tfoot id='w8rhp'></tfoot>
                  本文介绍了UIBackButton背景图像未出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的 UIBackbutton 没有出现有问题,我不确定是什么原因造成的.

                  i'm having a problem with my UIBackbutton not appearing and i'm not sure what is causing it.

                  这是我制作后退按钮图像的代码,它在我的第一个 ViewController 中:

                  This is my code for making the back button image, it is in my first ViewController :

                  UIImage *backButtonHomeImage = [[UIImage imageNamed:@"backButtonImage"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
                  [[UIBarButtonItem appearance] setBackButtonBackgroundImage:backButtonHomeImage  forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
                  

                  当您第一次进入下一个视图时(通过按钮的转场完成),按钮不可见,但要返回的文本可见.一旦我点击后退按钮,图像就会出现,并且在我下次点击它时会一直出现.

                  When you first enter the next view (done by a segue from a button) the button isn't visible but the text to go back is visible. Once i've hit the back button the image appears and it stays appeared on the next time i click it.

                  我不确定这是否与我的代码或它所在的文件有关,或者是否与 iOS 7 问题有关.

                  I'm not sure if this is an issue to do with my code, or the file it's in or if it's and iOS 7 problem.

                  推荐答案

                  使用 UIBarButtonItem 并显式设置后退按钮背景可能会更幸运.

                  You may have more luck using a UIBarButtonItem and setting the back button background explicitly.

                  在我自己尝试让后退按钮与 iOS 7 一起使用时,外观代理不可靠.我遇到了同样的问题,第一次显示按钮时背景没有正确显示.

                  The appearance proxy has been unreliable in my own attempts to get a back button working with iOS 7. I experienced the same issue with the background not showing up properly first time showing the button.

                  这篇关于UIBackButton背景图像未出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在导航栏中为嵌入式 UISearchbar 设置色调颜色 下一篇:iOS 5 [UINavigationBar 外观] setBackgroundImage 不起作用

                  相关文章

                  <tfoot id='M9oFE'></tfoot>
                1. <legend id='M9oFE'><style id='M9oFE'><dir id='M9oFE'><q id='M9oFE'></q></dir></style></legend>

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

                    • <bdo id='M9oFE'></bdo><ul id='M9oFE'></ul>

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