D
D
Dmitry Zamula2014-01-04 17:23:16
Objective-C
Dmitry Zamula, 2014-01-04 17:23:16

How to use the return key on the iOS keyboard?

There is an authorization screen in the application, as everyone knows, in many applications, when you select the login input field when you press return, the password field is automatically selected, and if you press the return on the password field, the authorization process will begin. So, how can I set actions for this very return key?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2014-01-04
@DimkaMind

Set delegate for UITextField, and handle the call of this method in it
- (BOOL)textFieldShouldReturn:(UITextField *)textField depending on which textField came.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question