you need to use UIGestureRecognizer. You can add it directly in your viewController:
UITapGestureRecognizer *tap =
[[UITapGestureRecognizer alloc] initWithTarget:myView action:@selector(yourSelector:)];
[myView addGestureRecognizer:tapp];
Otherwise you can add it directly with the interface boulder:
after adding the gesture recognizer you can use it like a normal outlet.