Skip to content

Instantly share code, notes, and snippets.

@byJeevan
Created December 25, 2018 03:17
Show Gist options
  • Save byJeevan/563da66a2264f5aaa4c6444b7057d38e to your computer and use it in GitHub Desktop.
Save byJeevan/563da66a2264f5aaa4c6444b7057d38e to your computer and use it in GitHub Desktop.
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWasShown(notification:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillBeHidden(notification:)), name: NSNotification.Name.UIKeyboardWillHide, object: nil) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment