iphone - Can I change property UIReturnKeyType of UITextField dynamically? -


we can set property of uitextfield "send", "search", "go", etc.:

@property(nonatomic) uireturnkeytype returnkeytype 

but setting while using uitextfield doesn't change @ all.

i want behavior: when uitextfield empty, let returnkeytype "return", otherwise let returnkeytype "send".

normally returnkeytype , other properties checked when keyboard displayed, not monitored later updates. try calling reloadinputviews on text field after changing returnkeytype, should instruct refresh keyboard settings.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -