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