Exactly what the title implies. How do the gesture recognizers work, specifically UIGestureRecognizer. Here is a small snippet of my code
var keyboardDismiser: UISwipeGestureRecognizer = UISwipeGestureRecognizer(target: self, action: "gestureRecognizer:")
        keyboardDismiser.direction = .Right | .Left
        noteView.addGestureRecognizer(keyboardDismiser)
and
    func gestureRecognizer(sender: UISwipeGestureRecognizer!) {
    println("swipe")
    self.view.endEditing()
}
My goal is to dismiss the keyboard when switching from view to view in a UIScrollView with 3 pages. What am I doing wrong? There isn't much documentation on this in Swift.
 
     
     
    