UIView inside UIScrollView not getting touch events?

You may have solved this now but I had a similar problem and solved it so hopefully my experience can help anyone else with a similar issue.

Up vote 0 down vote favorite share g+ share fb share tw.

My view hierarchy looks like this: -UIScrollView ---UIView ------CustomUIView ------CustomUIView I have implemented touches began in CustomUIView, but it's not getting called. Can someone please tell me how I can get my CustomUIView to detect touches? Thanks.

Objective-c cocoa-touch ios uiview uiscrollview link|improve this question edited May 22 '11 at 6:53 asked May 22 '11 at 3:30user6350649942525 69% accept rate.

I tested the same hierarchy and it seems to be ok. Are these hidden views or have their userInteractionEnabled = NO;? – Deepak May 22 '11 at 10:47.

You may have solved this now but I had a similar problem and solved it so hopefully my experience can help anyone else with a similar issue. In my case I had exactly the same setup my CustomUIView was capturing the touch events. In order to have UIView receive any touch events I needed to make a call to super touchesEnded:touches withEvent:event; from the CustomUIView.

Hope this helps!

Try the following and check: scrollView setCanCancelContentTouches:NO.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions