简体   繁体   English

将垂直滚动事件从uibutton传递到tableviewcell

[英]pass vertical scroll event from uibutton to tableviewcell

I placed a uibutton inside of a tablecell. 我将uibutton放置在表格单元中。 When i try to scroll up and down through the table, the table does not scroll if i place my finger on the button and scroll from there. 当我尝试在表格中上下滚动时,如果我将手指放在按钮上并从那里滚动,则表格不会滚动。 How do I pass the scroll event up the responder chain so that the tableview can handle the scrolling? 如何在响应者链上传递滚动事件,以便Tableview可以处理滚动?

This is very deliberate behavior in the frameworks. 这是框架中非常刻意的行为。 UIScrollView explicitly avoids taking over touch events that begin on a button. UIScrollView明确避免接管从按钮开始的触摸事件。 Is there any particular reason you want this to happen? 您是否有任何特定原因希望发生这种情况?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM