Not receiving touchesEnded/Moved/Cancelled after adding subView

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-03-19T17:07:13Z Indexed on 2010/03/19 17:11 UTC
Read the original article Hit count: 225

Title more or less says it all. In response to a touchesBegan event, my UIViewController recolours itself and adds some subviews.

It never receives the touchesEnded. I guess because the added subviews are somehow intercepting the event. I tried calling resignFirstResponder on the subviews to no avail.

The code works fine when I don't add the child views and the touch events are called as normal.

Any ideas?

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiviewcontroller