Friday, 15 July 2011

ios - UITextField that is always first responder -



ios - UITextField that is always first responder -

i have viewcontroller textfield, next button, , button. want text field editable while having keyboard present. want customize keyboard own, come 1 time figure part out.

edit: keyboard in case keypad 10 digits , backspace key

what best way go this? i've been working around having uitextfield works custom keyboard view, , create first responder when view loads, maybe there improve ways.

thanks in advance!

to create uitextfield utilize keyboard...

in viewdidappear or viewwllappear function this...

[self.textfield becomefirstresponder];

this create keyboard appear , textfield respond input.

to dismiss keyboard have run...

[self.textfield resignfirstresponder];

as long don't run maintain keyboard focus.

ios uitextfield uikeyboard first-responder

No comments:

Post a Comment