UITextfield is becoming focused after UIButton pressed

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-14T17:57:31Z Indexed on 2010/05/14 18:04 UTC
Read the original article Hit count: 305

I have a UITextfield for entering text. A button triggers a functionality. After completion of the IBAction the UITextfield is getting focused again. After the IBAction I want to keyboard to disappear. What happends now is that due to the IBAction of the button, the keyboards disappears (I'm showing a UIAlert) and after the IBAction the keyboards pop's up again together with the focus in the UITextfield. Is it possible to prevent the UITextfield to be focused after the IBAction?

© Stack Overflow or respective owner

Related posts about keyboard

Related posts about ibaction