Thursday, July 16, 2015

dismiss keyboard when touch on screen

override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
        view.endEditing(true)
        super.touchesBegan(touches, withEvent: event)

    }

No comments:

Post a Comment