I’m currently trying to create a simple UIView which contains some labels and images.
How can I set the UIView as clickable?
I have already tried to override the onTouchEnded method, but when I added the labels and the images as sub-views to the view, the method is no longer called.
Because UIImageView and UILabel have their
userInteractionEnabledproperty set toNOby default. Set it toYES(true) and that should be fine.