Move view with keyboard using swift 3
问题 I have an app that has a text field on the lower half of the view and I have a navigation controller bottom of page. How would I go about moving the view upwards while typing so I can see what i'm typing and then moving it back down to its original place when the keyboard disappears? I don't want to move navigation controller 回答1: You have to observe changes in keyboard frame and act accordingly to show your uiview (uitextfield, uitextview etc.) above the keyboard. NotificationCenter Apple