<tfoot id='IV6JK'></tfoot>

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

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

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

        以编程方式向 UIButton 标签添加阴影

        时间:2023-07-07
          <bdo id='AXobM'></bdo><ul id='AXobM'></ul>

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

        • <legend id='AXobM'><style id='AXobM'><dir id='AXobM'><q id='AXobM'></q></dir></style></legend>

                <tfoot id='AXobM'></tfoot>
                  <tbody id='AXobM'></tbody>
              1. <i id='AXobM'><tr id='AXobM'><dt id='AXobM'><q id='AXobM'><span id='AXobM'><b id='AXobM'><form id='AXobM'><ins id='AXobM'></ins><ul id='AXobM'></ul><sub id='AXobM'></sub></form><legend id='AXobM'></legend><bdo id='AXobM'><pre id='AXobM'><center id='AXobM'></center></pre></bdo></b><th id='AXobM'></th></span></q></dt></tr></i><div id='AXobM'><tfoot id='AXobM'></tfoot><dl id='AXobM'><fieldset id='AXobM'></fieldset></dl></div>
                • 本文介绍了以编程方式向 UIButton 标签添加阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I'm trying to add a 1px black drop shadow to a button label with no luck. I've tried this:self.setTitleShadowOffset = CGSizeMake(0, -1); but I get:

                  Request for member 'setTitleShadowOffset' in something not a structure or union

                  Any suggestions would be fantastic thanks!

                  解决方案

                  The other answers do not properly set the shadow color (I suspect they didn't notice because they were trying to set the shadow color to what it is by default, black.)

                  This code worked for me to add a white shadow to the text of my button:

                  myButton.titleLabel.shadowOffset = CGSizeMake(0, 1);
                  [myButton setTitleShadowColor:[UIColor whiteColor] forState:UIControlStateNormal];
                  

                  这篇关于以编程方式向 UIButton 标签添加阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如果按下子视图的按钮,如何取消 UIGestureRecognizer 下一篇:具有自定义边框颜色的 UIButton,iPhone

                  相关文章

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

                    <bdo id='1lQwx'></bdo><ul id='1lQwx'></ul>

                  <small id='1lQwx'></small><noframes id='1lQwx'>

                  <tfoot id='1lQwx'></tfoot>

                    <legend id='1lQwx'><style id='1lQwx'><dir id='1lQwx'><q id='1lQwx'></q></dir></style></legend>