iOS 7 storyboard localization with attributed Labels

自作多情 提交于 2021-01-27 04:57:06

问题


I am generating my String- Files with ibtool from my Base Storyboard for all my languages...For some reason ibtool is not extracting UILabels with style "attributed"...

I have no Key/Value Pair for those labels...Does somebody has a clue why?!


回答1:


I ended up concluding that it couldn't be done using ibtool in the present version.

Instead I let the Textview be a plain text view and, using my subclass, parsed its text property so I could make a NSMutableAttributedString and set the needed properties.

That enabled me to use ibtool to extract the strings and still have an attributed textview.

Localizing attributed UITextView from storyboard



来源:https://stackoverflow.com/questions/22634849/ios-7-storyboard-localization-with-attributed-labels

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