ios - entering text into UI textfield by pressing return button -


let's want enter data text field, text example, want press done or return button in keyboard enter data ui text field.

how can ?

this should simple using uitextfielddelegate process when return key has been pressed.

so can adopt protocol, assign delegate on uitextfield , process data in delegate method textfielddidendediting: when return key pressed. delegate method mentioned can found here. make sure have enabled processing of return key returning true textfieldshouldreturn:.


Comments