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

        <legend id='mYMHh'><style id='mYMHh'><dir id='mYMHh'><q id='mYMHh'></q></dir></style></legend>
        <tfoot id='mYMHh'></tfoot>

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

      1. UIButton 选择颜色

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

            <tfoot id='ij9my'></tfoot>

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

              <tbody id='ij9my'></tbody>
              <bdo id='ij9my'></bdo><ul id='ij9my'></ul>

                1. 本文介绍了UIButton 选择颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在绘制自定义 UIButton 并希望在突出显示时设置蓝色.我怎样才能做到这一点?

                  I am drawing custom a UIButton and want to set the blue color when it is highlighted. How can I achieve this?

                  UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];
                  [myButton setBackgroundImage:[[UIImage imageNamed:@"test.png"] stretchableImageWithLeftCapWidth:100 topCapHeight:0] forState:UIControlStateNormal];
                  

                  推荐答案

                  您可以尝试使用另一个图像来完成这项工作.你也可以参考这个链接:

                  You can try to use another image to do the job. You can also refer to this link:

                  是否可以更改 UIButtons 背景颜色?

                  这篇关于UIButton 选择颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在导航栏上放置标签、按钮 iOS 下一篇:目标c如何为整个应用程序上的所有UIbuttons设置独家触摸

                  相关文章

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

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