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

  1. <tfoot id='1M1Lj'></tfoot>

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

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

      如何将“发光效果"添加到 UIBarButtonItem?

      时间:2023-07-07
    1. <small id='G1LOU'></small><noframes id='G1LOU'>

        • <bdo id='G1LOU'></bdo><ul id='G1LOU'></ul>
          <legend id='G1LOU'><style id='G1LOU'><dir id='G1LOU'><q id='G1LOU'></q></dir></style></legend>
            <tbody id='G1LOU'></tbody>

                <tfoot id='G1LOU'></tfoot>

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

              1. 本文介绍了如何将“发光效果"添加到 UIBarButtonItem?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我尝试了很多方法来找出 UIBarButtonItem 的发光效果.现在正在创建一个 UIButton 并将其作为 UIBarButton 的 customView.有没有人有任何其他方法可以使它更容易?(就像 UIBarButtonItem 的内置属性)

                I tried a lot to find out the glow effect for UIBarButtonItem. Now am doing by creating a UIButton and making it as the customView for the UIBarButton. Do anyone have any other methods to make it much more easier? (like a inbuilt property for UIBarButtonItem)

                推荐答案

                你的意思是当你触摸一个按钮时得到的效果?这是 UIButton 上的一个属性(也可以从 Interface Builder 访问);

                You mean the effect you get when you touch an button? That is a property on an UIButton (also accessible from Interface Builder);

                @property(nonatomic) BOOL showsTouchWhenHighlighted
                

                所以...

                UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
                button.showsTouchWhenHighlighted = YES;
                

                如果您编写 UIBarButtonItem 的子类并将此代码放在某个地方,那么重用它真的很容易(而且不会乱七八糟).不知道有没有其他办法.

                If you write a subclass of UIBarButtonItem and put this code in there somewhere it is really easy (and not messy) to re-use it. I'm not sure if there is any other way.

                这篇关于如何将“发光效果"添加到 UIBarButtonItem?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:圆形 UIButton 下一篇:IOS:在uitableviewcell中保持按钮状态

                相关文章

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

                  • <bdo id='5YGmQ'></bdo><ul id='5YGmQ'></ul>
                  1. <legend id='5YGmQ'><style id='5YGmQ'><dir id='5YGmQ'><q id='5YGmQ'></q></dir></style></legend>
                    <tfoot id='5YGmQ'></tfoot>

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