简体   繁体   English

手势和响应链

[英]Gestures and Responder Chain

Im developing an ipad application. 我正在开发一个ipad应用程序。 And i have a outer scroll view and inner scroll views. 我有一个外部滚动视图和内部滚动视图。 Inside the inner scroll views im using a grid view to render my items. 在内部滚动视图中,我使用网格视图来渲染我的项目。 Im using a library for this called GMGridView. 我正在使用一个名为GMGridView的库。

and in the grid view im using gestures. 并在网格视图中使用手势。 (ex: pan gesture). (例如:潘手势)。 The gridviews are added as subviews to the outer scroll view. gridview作为子视图添加到外部滚动视图。 So if my understanding of the responder chain is correct, first the super view should respond and then the subviews. 因此,如果我对响应者链的理解是正确的,首先超级视图应该响应,然后是子视图。 But now wat happens is wen i touch on the gridview the control immediately goes to the gridview. 但现在发生的事情就是我在触摸gridview时控件立即进入gridview。

Any idea as to why this is happening? 知道为什么会这样吗? Basically what i want to be done is the outer scroll view to be scrolled before the control goes to the inner scroll view which is a vertical scrol view. 基本上我想要做的是在控件进入内部滚动视图(一个垂直滚动视图)之前滚动的外部滚动视图。

It'll be great if anyone can help me out with this. 如果有人能帮我解决这个问题会很棒。 Thanks in advance. 提前致谢。

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

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