Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
737 views
in Technique[技术] by (71.8m points)

iphone - Changing text of done button in keyboard

I know there is a question about this subject already but I think it's possible to change the text of the done button of a keyboard, because many of the apps I use are in french and the text of the done button is "accéder".

But I don't know how to do this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can't set it to arbitrary text, but you can make it a canned word by setting the returnKeyType on whatever text field or view is being used for editing. Possible values of UIReturnKeyType are here:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html%23//apple_ref/occ/intf/UITextInputTraits

These are generally localized with the app, though. If your app supports an "fr" localization, and the device is set to French, you should get the localized versions of the keyboard keys.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...