objective c - IOS: action with enter key of iPad KeyBoard -


i have 2 textfield, in first textfield write "hello" , when push enter in ipad keyboard, want in second textfield appear "world"; how can use enter create action in application?

you typically assign view controller text field's delegate , implement textfieldshouldreturn: method, e.g.:

- (bool)textfieldshouldreturn:(uitextfield *)textfield {     othertextfield.text = @"world"     return yes; } 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -