Hi all, I've a question about touch events in a view heirarchy:
I have a UIView object which has an on touch event attached. This has a sub view with another on touch event. When this subview is added to the main view I can override the touch event of the UIView behind it by either adding an event handler for the same event to the subview, or putting an 'point in frame' block in the main view. Both these methods work well.
However if I add a button to the subview and touch this, then the main view receives the touch event again. How can I stop this?
thanks,
kenneth
I have a UIView object which has an on touch event attached. This has a sub view with another on touch event. When this subview is added to the main view I can override the touch event of the UIView behind it by either adding an event handler for the same event to the subview, or putting an 'point in frame' block in the main view. Both these methods work well.
However if I add a button to the subview and touch this, then the main view receives the touch event again. How can I stop this?
thanks,
kenneth