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
Post a Comment