In a UIViewController I am adding a UIView named testView
@property(nonatomic) UIView * testView;
-(UIView *)testView{
if (!_testView) {
_testView = [UIView new];
_puzzleView.translatesAutoresizingMaskIntoConstraints = NO;
}
return testView
}
then I add that View to ViewController. I want to detect the touch in testView. How can I add the hitTest method in that UIView which is in a ViewController