iphone - 带有属性标签的 iOS 7 Storyboard本地化

标签 iphone objective-c ios7 localization storyboard

我正在使用 ibtool 从我的 Base Storyboard 中为我所有的语言生成我的字符串文件...出于某种原因,ibtool 没有提取样式为“attributed”的 UILabel...

我没有这些标签的键/值对...有人知道为什么吗?!

最佳答案

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

关于iphone - 带有属性标签的 iOS 7 Storyboard本地化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22634849/

相关文章:

ios - 以编程方式获取 WKInterfaceGroup 的背景颜色 (WatchKit)

ios - 未调用 UIPageViewController 委托(delegate)方法

ios - 使用 drawInRect 对齐文本 :withAttributes:

ios - 当图像及其按钮旋转时,相机应用程序如何防止其工具栏旋转?

iphone - UITextField 上的 drawTextInRect 未调用

iphone - 登录Twitter(iPhone设置页面)后如何重定向到应用程序?

iphone - 使用不同名称初始化多个对象

objective-c - 不允许分配给 'readonly' 返回结果,但属性声明为 "readwrite"

ios - MKMapCamera 俯仰高度函数

iphone - UITextView修正建议如何移动到文字上方