<bdo id='hnbVb'></bdo><ul id='hnbVb'></ul>
  • <small id='hnbVb'></small><noframes id='hnbVb'>

      <legend id='hnbVb'><style id='hnbVb'><dir id='hnbVb'><q id='hnbVb'></q></dir></style></legend>

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

      1. 具有自定义边框颜色的 UIButton,iPhone

        时间:2023-07-07

      2. <legend id='BjZkH'><style id='BjZkH'><dir id='BjZkH'><q id='BjZkH'></q></dir></style></legend>

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

            <tbody id='BjZkH'></tbody>

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

                  <bdo id='BjZkH'></bdo><ul id='BjZkH'></ul>
                • 本文介绍了具有自定义边框颜色的 UIButton,iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想创建具有矩形形状的自定义 UIButton.为此,我使用矩形视图作为 UIButton 的背景并将 UIbuttons 背景颜色设置为 clearcolor.但是 UIbutton 的边框仍然存在.关于如何使边框消失的任何建议?感谢您提前提供任何帮助..

                  I want to create Custom UIButton with rectangular shape. for this I am using rectangular view as a Background for UIButton and making UIbuttons background colour as clearcolor. But border of UIbutton still remains. any suggestions on how to make border disappear? Thanks for any help in advance..

                  推荐答案

                  试试这个:

                      UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
                      [button.layer setBorderColor:[[UIColor clearColor] CGColor]];
                  

                  但不要忘记添加您的 .h 或 .m 文件

                  but don't forget to add in your .h or .m file

                  #import <QuartzCore/QuartzCore.h>
                  

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

                  上一篇:以编程方式向 UIButton 标签添加阴影 下一篇:Swift中具有透明背景的按钮边框

                  相关文章

                • <legend id='5iQM0'><style id='5iQM0'><dir id='5iQM0'><q id='5iQM0'></q></dir></style></legend>
                    <tfoot id='5iQM0'></tfoot>

                      <small id='5iQM0'></small><noframes id='5iQM0'>

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