Mat Demon
Mat Demon

Reputation: 197

Changing text of done button in keyboard in iOS8

I want to change its text to 'Save'.

I guess I need create a custom keyboard to do it. But should I create all keyboard buttons from scratch or there is a way to customize only 'Done' button?

Upvotes: 0

Views: 547

Answers (1)

joewright
joewright

Reputation: 325

returnKeyType a property on the textfield, see the documentation for returnKeyType and its available constant values:

UIReturnKeyDefault,
UIReturnKeyGo,
UIReturnKeyGoogle,
UIReturnKeyJoin,
UIReturnKeyNext,
UIReturnKeyRoute,
UIReturnKeySearch,
UIReturnKeySend,
UIReturnKeyYahoo,
UIReturnKeyDone,
UIReturnKeyEmergencyCall

Upvotes: 1

Related Questions