Wednesday, 15 May 2013

ios - Keyboard will not dismiss -



ios - Keyboard will not dismiss -

i have view controller input box attached bottom. if input clicked, keyboard show up. view controller pushed table view controller. when click button parent table view controller , come back, keyboard show automatically , hover on top of view. tried resignfirstresponder hide keyboard didn't work.

if click input, keyboard show this:

then click button parent table view. click row in table come in view again. keyboard still there , input view under keyboard.

edit1:

i tried smiless's code. keyboard disappear gradually when view appears. there way remove slow motion disappearing?

- (void)viewdidappear:(bool)animated { [super viewdidappear:animated]; [self.view endediting:yes]; }

try 1 dismiss keyboard when user taps somewhere else :

- (void)touchesbegan:(nsset *)touches withevent:(uievent *)event{ [self.view endediting:yes]; }

ios objective-c ios7 ios8 xcode6

No comments:

Post a Comment