Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fenrus110

macrumors regular
Original poster
Mar 24, 2008
142
0
In a way, I'm try to combine the Page Control and Touches samples into one application. To make things more complicated, I also have a UITextView (so double the scrolling fun)

I put a UIView as a "cover" overtop of my UITextView so I can do the left and right scrolling/paging with my finger. (I left the right side open so I can still do vertical scrolling if necessary)

If I swipe quickly over top of this cover, my UIScrollView gets activated. But if I hold down on the cover, the roll my finger along it, my touchesBegan and touchesMoved functions get activated. If I drill down in my touches event array, I can see I am in fact touching the UIScrollView.

So when on touchesBegan/Moved and also touching the scroll view, I want to activate it, but is there a way to activate it with code?

Or is there a way to ignore the touchesBegan/Moved events only when I touch this "cover"?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.