62

How can I change the standard text of the "Return" button to something else?

I want it to be "Add".

1

3 Answers 3

130

Unfortunately, you can change "Return" into only one of these predefined labels with the returnKeyType property:

  • Return (default)
  • Go
  • Google
  • Join
  • Next
  • Route
  • Search
  • Send
  • Yahoo
  • Done
  • Emergency Call
  • Continue (as of iOS 9)

So maybe you should choose "Next" if a data entry kind of activity is what you're after.

More information here.

Sign up to request clarification or add additional context in comments.

5 Comments

From now on I'm using Yahoo as the default action button text in my iOS apps.
That's weird nobody thinks about "Save" label.
iOS 9 supports UIReturnKeyType Send
It's supported since iOS 2.0, actually.
Isn't it kind of ridiculous that these options have not changed in 2018? I wanted to set my return label to "Ask". Oh well I guess Send will have to suffice.
6

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.

Comments

3

iOS 9 now supports Send button. This is the following swift code

self.liveChatMessage.returnKeyType = .Send

Objective C:

[self.liveChatMessage setReturnKeyType: UIReturnKeyTypeSend];

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.