touchesBegan in UIView not being called
I just found the answer to this. I realised that the superview of the UIView
has the userInteraction
set to disabled (which is the default value). So when I enabled the userInteraction
of the superview, the touches are now recognised.
In my case background = UIColor.clearColor()
was the reason why touchesBegan
was not called. Its obviously not called on transparent elements.