Keeping object on top of keyboard in the event of becomeFirstResponder or resignFirstResponder?

UIKit posts UIKeyboardWillShowNotification when it shows the keyboard, and UIKeyboardWillHideNotification when it hides the keyboard. These notifications contain everything you need to properly animate your UITextField. Let’s say your UITextField is in a property called called myTextField. First, you need to register for the notifications somewhere. Where you register depends on what object is responsible … Read more