You can accomplish this by overriding the hitTest:withEvent:
method in the class of your fully transparent view, like:
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
return self;
}
The implementation of hitTest:withEvent:
doesn't have to be that simple, of course. The point is that you can cause even a fully transparent view to be touchable as long as something returns that view from hitTest:withEvent:
.
Do note, however, that screwing around with hitTest:withEvent:
is an easy way to create some very weird bugs. Use this method with caution.