UICatalog and Keyboard Events

Latest Apple Version The UICatalog sample application includes null code in the TextFieldController to handle show / hide events on the keyboard, and yet the table view still slides up and down beautifully using the keyboard.

Does anyone know what a new trick is? Does XIB have settings that allow them to register for notifications or using the TextField delegation methods?

TextViewController still uses keyboard notifications to cope with the unfolding of the view, so I'm very confused about why this is no longer included in TextFields.

Thoughts?

+3
source share
2 answers

becomeFirstResponder UITextField, . -, [textField becomeFirstResponder] iOS , textField.

, , UIScrollView scrollRectToVisible:animated:, - .

!

0

, , :

[sender resignFirstResponder];

.

0

Source: https://habr.com/ru/post/1735997/


All Articles