Change text of "Return" keyboard button

IosCocoa TouchUikeyboard

Ios Problem Overview


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

I want it to be "Add".

Ios Solutions


Solution 1 - Ios

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.

Solution 2 - Ios

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.

Solution 3 - Ios

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

self.liveChatMessage.returnKeyType = .Send

Objective C:

[self.liveChatMessage setReturnKeyType: UIReturnKeyTypeSend];

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionIlya SuzdalnitskiView Question on Stackoverflow
Solution 1 - IosmacbirdieView Answer on Stackoverflow
Solution 2 - IosAmyNguyenView Answer on Stackoverflow
Solution 3 - IoscmarioView Answer on Stackoverflow