Keep the keyboard always on top and visible.

I have a view with a text box, an image and a few buttons. I want to make sure that the keyboard is displayed and is on top when the view is displayed. ALSO I want to make sure that it does not disappear after entering anything in the text box and send it.

I called [txtField becomeFirstResponder]with viewdidload, and the keyboard appears by default, but with a slight delay after the view is displayed.

Also, startfirstresponder does not help after sending my text box.

Thanks in advance for your help!

+5
source share
1 answer

Also, startfirstresponder does not help after sending my text box.

. , endEditing: resignFirstResponder. , . , .

EDIT: , : didEndOnExit . , , ""! , , , - .

, , , didEndOnExit ( ). , , . , . , , , textField:shouldChangeCharactersInRange:replacementString:. , "", textFieldShouldReturn:. .

+4

All Articles