btaclub.blogg.se

UiscrollView passes touches to supwerview while bouncing
UiscrollView passes touches to supwerview while bouncing




uiscrollView passes touches to supwerview while bouncing

Most views simply forward this information to subviews who then activate then send an event up the responder chain to be handled.

uiscrollView passes touches to supwerview while bouncing

Is the touch intended to slide the slider or is it the start of a horizontal scroll? Which should have precedence?Įven though programmatically, the responder chain moves from the bottom most view (top most visually) up the chain until it finds an object that deals with it, behind the scenes the processing of a touch's location goes from the top most view (which is the app window) downward. Solution 2Ī scroll view has move both horizontally and vertically so it has to sample all touches to see if they are scrolling touches.įor example, you have a slider in scrollview that scrolls horizontally. You can also change subview that must receive event. This method gets called to check what subview must receive the touch event, so you can perform some action there before it actually happens. You can implement hitTest:withEvent: method in your UIView subclass.






UiscrollView passes touches to supwerview while bouncing