cocoa touch - touchesBegan in UIView not being called -


I know that this question will be answered a long way, but it is actually giving me a headache now. / P>

touches: My UIView is not being called in before I added it to my app, I created a trial project before. In the testing project, everything worked perfectly. Everything I did was in the UIView sub-class where touches: is being implemented, and add this UIView as a subview of another view. This second view has a button, which shows the once clicked subclassed UIView. Then, everything works properly how I want to do it.

Now, when I did the same in my current app, the missed: method (as well as TouchesMoved: ) is never called. Can anyone explain to me why? I really do not understand why this was never called.

I got an answer to this. I forgot to mention that the view is inside another UIView, which is user interaction disabled (this is disabled by default). So when I have enabled user interaction of this view, touch is being recognized now.

Comments