• <small id='Y7zst'></small><noframes id='Y7zst'>

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

        UIButton 不允许 UIScrollView 滚动

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

              <tbody id='st4Uw'></tbody>

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

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

                1. 本文介绍了UIButton 不允许 UIScrollView 滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 UIScrollView 中有许多 UIButtons.这些 UIButtonsTouch Down Repeat 中附加了动作.我的问题是当我触摸一个按钮然后滚动时我的滚动视图不滚动,但如果我触摸按钮外部它工作正常.

                  I have many UIButtons within a UIScrollView. Those UIButtons have actions attached to them in Touch Down Repeat. My problem is my scroll view doesn't scroll when I touch a button then scroll, but it works fine if I touch outside of the button.

                  即使按下按钮,我怎样才能让我的滚动视图滚动?

                  How can I allow my scroll view to scroll even though a button is pressed?

                  推荐答案

                  只要您在 Interface Builder 中设置了 Cancellable Content Touches,它应该可以工作.也可以在代码中设置:

                  As long as you have the Cancellable Content Touches in Interface Builder set it should work. You can also set it in code:

                  scrollView.canCancelContentTouches = YES;
                  

                  这篇关于UIButton 不允许 UIScrollView 滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Swift中具有透明背景的按钮边框 下一篇:UINavigationItem 的持久 rightBarButtonItem 属性

                  相关文章

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

                      <tfoot id='CmNrn'></tfoot>
                    1. <legend id='CmNrn'><style id='CmNrn'><dir id='CmNrn'><q id='CmNrn'></q></dir></style></legend>