By Ilya Suzdalnitski


2009-06-10 17:10:37 8 Comments

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

I want it to be "Add".

3 comments

@cmario 2015-11-29 22:15:39

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

self.liveChatMessage.returnKeyType = .Send

Objective C:

[self.liveChatMessage setReturnKeyType: UIReturnKeyTypeSend];

@macbirdie 2009-06-10 17:23:14

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.

@Michael 2015-03-25 13:26:01

From now on I'm using Yahoo as the default action button text in my iOS apps.

@macbirdie 2015-04-14 16:21:06

@Michael Bing! would be cool as well

@Ben 2015-06-18 10:23:37

That's weird nobody thinks about "Save" label.

@cmario 2015-11-29 22:16:16

iOS 9 supports UIReturnKeyType Send

@macbirdie 2015-11-29 22:19:57

It's supported since iOS 2.0, actually.

@Supertecnoboff 2018-03-17 16:16:46

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.

@macbirdie 2018-03-19 00:57:19

You can never go wrong with Yahoo.

@AmyNguyen 2015-11-03 03:41:50

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.

Related Questions

Sponsored Content

48 Answered Questions

[SOLVED] Vertically align text to top within a UILabel

92 Answered Questions

25 Answered Questions

[SOLVED] How do I sort an NSMutableArray with custom objects in it?

51 Answered Questions

[SOLVED] How to change Status Bar text color in iOS

34 Answered Questions

[SOLVED] How to change the name of an iOS app?

  • 2008-10-27 03:07:03
  • Robert Gould
  • 447961 View
  • 957 Score
  • 34 Answer
  • Tags:   ios

26 Answered Questions

[SOLVED] How do you add multi-line text to a UIButton?

31 Answered Questions

[SOLVED] iPhone UITextField - Change placeholder text color

  • 2009-08-27 10:36:19
  • adam
  • 328281 View
  • 541 Score
  • 31 Answer
  • Tags:   ios uitextfield

42 Answered Questions

[SOLVED] Passing Data between View Controllers

19 Answered Questions

[SOLVED] UITextField text change event

34 Answered Questions

[SOLVED] How to navigate through textfields (Next / Done Buttons)

Sponsored Content