I have a pretty simple UIViewController. It was initialized with the view I created in Interaface Builder, which contains only UIImageView. When the user touches the screen, I want the touchsBegan UIViewController message to be called. So, I override it and added some entries, but nothing happened.
I didnβt do anything βespeciallyβ at all, since the UIViewController inherits from the UIResponder, I expect this to work right out of the box. From what I understand, UIImageViews turned off user interaction by default, so I turned it on both through InterfaceBuilder and in my viewDidLoad UIViewcontroller method (I bound UIImageView to IBOutlet). I also guarantee that userInteraction is included in the parent view in Interface Builder.
Anything else that I forget here?
source
share