I have a custom subclass of UIView developed in IB that contains several labels and a button. For a touchUpInside button, there is an action on the button, and the goal is a custom view.
I bind this user view to self.tableView.tableHeaderView to represent the table in my interface.
It is strange that this user view does not respond to touch. I see this well with all the shortcuts and the button aside from the table view, this means that the table handle handles and displays it correctly, however it does not respond to touches. I checked the entire hierarchy of views, and all the views considered have userInteractionEnabled as YES. If I drag some other controls into this user view, for example, a switch, a segmented control ... they don't respond either. It looks like these controls in the user view do not register strokes.
It makes no sense. I have no ideas. Can you help enable the touch event on the button to get to the parent view?
source
share