Disable the Go button in the Keyboard for a UITextfield in iphone app.

Posted by coder net on Stack Overflow See other posts from Stack Overflow or by coder net
Published on 2011-01-15T21:52:47Z Indexed on 2011/01/15 21:53 UTC
Read the original article Hit count: 185

Filed under:
|

Hi,

My app has a screen where keyboard is always visible. The main element of the screen is a UITextfield. For easy data entering, keyboard is always made visible. When the user finishes entering data and hits Go, the app performs a 4,5 seconds action which is done in the background thread in order to show UIActivityIndicatorView. My problem is that the Go button on the keyboard still shows as enabled since the logic is performed in the background. The user could potentially hit the Go again causing it to run again. I am not able to set editable/userinteraction properties to No because then the keyboard disappears. Is there anyway just to disable the Go button or freeze the keyboard until the background thread returns?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c