IOS: How to forward touch events from subview to supervisor?

I have the following setup in my iPhone project (UIButton with UIView as a subtask):

- UIButton       // super-view   <-------|
  |                                <touch-event>
  |_ UIView      // sub-view     ________|

I associated the action (touch-up-inside) with my UIButton with IB on my view controller. But, unfortunately, UIView does not allow the OS to call the action method of my UIButton, since the mobility of the UIView does not respond to touches and, therefore, does not redirect its superview.

How to redirect an action event from a UIView to a supervisible UIButton? So UIButton "thinks" that he was affected, although the subrecord was affected.

I already found these links, but they did not help me:

The sample code in Objective-C will be great!

+4
1

(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event UIView NO .

+4

All Articles