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

c++ - error: use of deleted function -

delphi - ESC/P programming! -

c# - how to write client side events functions for the combobox items -