well before i ask this i try the other solutions and it didn't work
this is my code
override func viewDidLoad() {
super.viewDidLoad()
let tapGesture = UITapGestureRecognizer(target: self, action: "didTouchBoard:")
view.addGestureRecognizer(tapGesture)
tapGesture.cancelsTouchesInView = true
}
when i click anywhere it will hide the keyboard if exist , but if i click on tableviewcell or collectionviewcell , it won't click
i try this tapGesture.cancelsTouchesInView , but not work