11
we can set this property of UITextField to "Send", "Search", "Go", etc.:
@property(nonatomic) UIReturnKeyType returnKeyType
But setting it while using the UITextField doesn't change at all.
I want this behavior: When UITextField is empty, let returnKeyType be "Return", otherwise let returnKeyType be "Send".