Created
September 28, 2015 17:08
-
-
Save harry1064/e92f163e553e77b152d4 to your computer and use it in GitHub Desktop.
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
up vote | |
55 | |
down vote | |
Here is the cleanest way to achieve this in iOS 7.0. | |
scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; | |
Or | |
scrollView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive; | |
Swift: | |
scrollView.keyboardDismissMode = .OnDrag | |
Or | |
scrollView.keyboardDismissMode = .Interactive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment