Localize a UITextView

旧巷老猫 提交于 2019-12-11 09:45:17

问题


How do I localize a UITextView? I saw a lot of examples for a UITextField but none for UITextView.

I need to localize my application's description in the about section.


回答1:


If you've written the description directly into a UITextView in the XIB, you will need to duplicate the XIB (just use Xcode's localization tool) and then copy and paste the translated text into the new XIB.

If there are several XIBs or you need to send the text to translators, just use GENSTRINGS on all the XIBs. See here: http://kb.applingua.com/2011/07/extracting-strings-from-your-m-class-files/



来源:https://stackoverflow.com/questions/12951865/localize-a-uitextview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!