ios - tapping on another uitextfield does not close the keyboard -



ios - tapping on another uitextfield does not close the keyboard -

i have multiple uitextfields on view , in mehtod:

- (void)textfielddidendediting:(uitextfield *)textfield

i calling:

[textfield resignfirstresponder];

but not hide keyboard when switching between uitextfields, want close because uitextfields open other views.

i have checked events firing.

i have seen reply here doesn't help: tapping between uitextfields in ios7

if want close keyboard hitting specific textfield, give tag textfield , implement delegate method this:

- (bool)textfieldshouldbeginediting:(uitextfield *)textfield { if (textfield.tag == 1) { [self.view endediting:yes]; homecoming no; } else homecoming yes; }

ios uitextfield uikeyboard

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -