Skip to content

Instantly share code, notes, and snippets.

@ninjudd
Last active January 26, 2016 18:26
Show Gist options
  • Save ninjudd/092526b08b88d090fdaf to your computer and use it in GitHub Desktop.
Save ninjudd/092526b08b88d090fdaf to your computer and use it in GitHub Desktop.
func acceptAutocomplete() {
if textView.isFirstResponder() {
textView.hidden = true
dummyTextView.becomeFirstResponder()
textView.becomeFirstResponder()
textView.hidden = false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment