Last active
May 29, 2016 11:44
-
-
Save urouro/80288b981230861b913d to your computer and use it in GitHub Desktop.
Swift port of http://qiita.com/uro_uro_/items/ef700c85eb0aaff1a623
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { | |
for subview in view.subviews { | |
if subview.isKindOfClass(UITextField) { | |
subview.resignFirstResponder() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment