I have made a custom section-header for UITableView, that includes some controls like segmented control, UIImageView ,etc. It successfully appears, but it\'s not tappable so
Update for Swift 3.1
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(TapGestureRecognizer(gestureRecognizer:))) yourView.addGestureRecognizer(tapGesture) func TapGestureRecognizer(gestureRecognizer: UIGestureRecognizer) { //do your stuff here print("Gesture") }