Panda Pig • Patty original or translated works. Welcome reprint, Reprint please indicate the source.
If you feel that the writing is not good please more advice, if you feel good please support a lot of praise. Thank you! Hopy;)
If you try to change the UI structure when the soft keyboard is displayed or hidden, the only way you can rely on it is by using the keyboard's notification message.
The Uitextfield proxy message is only emitted when the text area starts to be edited, regardless of whether a software disk appears on the screen.
Remember, the user can use the Bluetooth keyboard to connect to an iOS device and use it to edit the text area or any other content in your app that can be entered into the control.
With a Bluetooth keyboard, there is no soft keyboard that will be displayed on the screen-if you change the structure of the UI when the text area is edited, it is not necessary to use a Bluetooth keyboard.
Reliable way to monitor soft keyboard display or hide in iOS