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

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

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

      <bdo id='QwZDd'></bdo><ul id='QwZDd'></ul>

    1. 当点击另一个按钮时隐藏一个 UIButton

      Hide a UIButton when another button is tapped(当点击另一个按钮时隐藏一个 UIButton)

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

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

                <tfoot id='joCCx'></tfoot>

                本文介绍了当点击另一个按钮时隐藏一个 UIButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如何在点击另一个按钮或任何其他事件时隐藏 UIButton?

                How can I hide a UIButton on the tap of another button, or any other event?

                推荐答案

                为按钮创建一个 outlet 以在你的 xib 中隐藏和连接它:

                Create an outlet for the button to hide and connect it in your xib:

                IBOutlet UIButton *myButton;
                

                现在为另一个按钮创建一个 IBAction 并在 xib 中连接它:

                Now create an IBAction for the other button and connect it in the xib:

                -(IBAction)hideButton
                {
                    myButton.hidden = YES;
                }
                

                所以现在当你点击第二个按钮时,它会隐藏myButton.

                So now when you click on the second button, it will hide myButton.

                这篇关于当点击另一个按钮时隐藏一个 UIButton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                UIButton title text color(UIButton 标题文本颜色)
                Stretch background image for UIButton(为 UIButton 拉伸背景图像)
                Using Tint color on UIImageView(在 UIImageView 上使用 Tint 颜色)
                How can I change UIButton title color?(如何更改 UIButton 标题颜色?)
                iPhone UIButton - image position(iPhone UIButton - 图像位置)
                UIButton remove all target-actions(UIButton 删除所有目标动作)
              1. <tfoot id='5ZtNG'></tfoot>

                    • <bdo id='5ZtNG'></bdo><ul id='5ZtNG'></ul>

                      <legend id='5ZtNG'><style id='5ZtNG'><dir id='5ZtNG'><q id='5ZtNG'></q></dir></style></legend>

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

                            <tbody id='5ZtNG'></tbody>

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