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
Post a Comment