UIScrollView still receives scroll events underneath a UIButton
I have a full-screen UIButton to capture all touch events, so that the scrollView underneath doesn't scroll. However, for some reason, it's not working. Can someone tell me a way to create a view that will capture tap and swipe events so this won't happ开发者_如何学Cen?
Thanks!
I just worked it out... The view I was adding it to had a smaller frame than its parent view... So even though the button was big enough to fill the screen, if it's outside the frame rect it won't respond to any touch events.
:)
精彩评论