1. <small id='RaY6L'></small><noframes id='RaY6L'>

          <bdo id='RaY6L'></bdo><ul id='RaY6L'></ul>
        <legend id='RaY6L'><style id='RaY6L'><dir id='RaY6L'><q id='RaY6L'></q></dir></style></legend>
        <i id='RaY6L'><tr id='RaY6L'><dt id='RaY6L'><q id='RaY6L'><span id='RaY6L'><b id='RaY6L'><form id='RaY6L'><ins id='RaY6L'></ins><ul id='RaY6L'></ul><sub id='RaY6L'></sub></form><legend id='RaY6L'></legend><bdo id='RaY6L'><pre id='RaY6L'><center id='RaY6L'></center></pre></bdo></b><th id='RaY6L'></th></span></q></dt></tr></i><div id='RaY6L'><tfoot id='RaY6L'></tfoot><dl id='RaY6L'><fieldset id='RaY6L'></fieldset></dl></div>
        <tfoot id='RaY6L'></tfoot>
      2. 如何将情节提要中的多个按钮连接到单个动作?

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

              <tbody id='lUDwI'></tbody>
            <legend id='lUDwI'><style id='lUDwI'><dir id='lUDwI'><q id='lUDwI'></q></dir></style></legend>
            • <small id='lUDwI'></small><noframes id='lUDwI'>

                • 本文介绍了如何将情节提要中的多个按钮连接到单个动作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前正在使用 Xcode 4.6,我只是想知道如何在不同的 UIView 中选择多个按钮,但在单个视图控制器下.CMD 点击似乎不起作用.我需要这个功能,因为在 Xcode 4.6 中,让 IB 上的两个按钮共享相同操作的唯一方法是一次选择它们,然后将操作拖到您的视图控制器.

                  I'm currently using Xcode 4.6 and I'm simply wondering how to select multiple buttons across different UIViews, but under a single view controller. CMD clicking doesn't seem to work. I need this functionality because in Xcode 4.6 the only way to let two buttons on IB to share the same action is to select them at once and then drag the action to your view controller.

                  我的最终目标是使用 Xcode 4.6 中的情节提要在两个不同的 UIView 上获得两个不同的按钮以匹配相同的操作.有没有办法做到这一点?

                  My ultimate goal is to get two different buttons on two different UIViews to match the same action using storyboards in Xcode 4.6. Is there a way to do this?

                  我目前正在使用 Xcode 4.6.1 没有任何运气,升级到 4.6.2.

                  I'm currently using Xcode 4.6.1 without any luck, upgrading to 4.6.2.

                  推荐答案

                  您可以将多个按钮连接到一个操作,而无需一次全部选中.

                  You can connect multiple buttons to a single action without selecting them all at once.

                  但是,在创建动作之后,您需要保存包含该动作的源文件,然后 Xcode 才能让您将另一个控件连接到该动作.

                  However, after creating the action, you need to save the source file containing the action before Xcode will let you connect another control to the action.

                  我用 Xcode 4.6.2 做到了这一点:

                  I did this with Xcode 4.6.2:

                  这篇关于如何将情节提要中的多个按钮连接到单个动作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:为什么我的 UIButton.tintColor 不起作用? 下一篇:如何从通过 MKAnnotationView 添加的按钮获取点击事件

                  相关文章

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

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

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