Happie coding
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment