I had a UIView with lots of objects. I also had an implementation of touchsMoved like this:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"move");
}
I recently wanted to scroll the view, so I just opened UIView, and in Interface Builder I changed my object class to UIScrollView. However, now the "touchhesMoved" method is never called even when you touch the screen.
Can someone please help me get touchhesMoved to work again? I'm not sure what I did to break it!
EDIT: I tried following this guide , but I might have done something wrong. From reading other posts, it seems that UIScrollView cannot receive touch events itself, and they need to send a chain of responders? I will be extremely grateful to anyone who can help me in solving this problem ... my application was ready for presentation when I realized that UIScrolView killed my touch detection! (I just changed my UIView apps to UIScrollView to be compatible with iPhone 4).
source
share