问题
I am generating my String- Files with ibtool from my Base Storyboard for all my languages...For some reason ibtool is not extracting UILabel
s 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