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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -