Reputation: 53540
How can I change the standard text of the "Return" button to something else?
I want it to be "Add".
Upvotes: 62
Views: 48530
Reputation: 605
iOS 9 now supports Send button. This is the following swift code
self.liveChatMessage.returnKeyType = .Send
Objective C:
[self.liveChatMessage setReturnKeyType: UIReturnKeyTypeSend];
Upvotes: 3
Reputation: 16193
Unfortunately, you can change "Return" into only one of these predefined labels with the returnKeyType
property:
So maybe you should choose "Next" if a data entry kind of activity is what you're after.
More information here.
Upvotes: 130
Reputation: 436
You can use this simple way:
[textField setReturnKeyType:UIReturnKeyNext]; or [textField setReturnKeyType:UIReturnKeyGo];
instead of "Add" button.
Other, you create a programmatically keyboard with buttons which you want.
Upvotes: 6