【发布时间】:2015-11-15 11:41:15
【问题描述】:
在这里,我尝试在一个 UILabel 中附加两个属性字符串,但我犯了一些错误,所以任何人都可以找到我的错误吗?
let textFontAttributes = [
NSFontAttributeName : font,
// Note: SKColor.whiteColor().CGColor breaks this
NSForegroundColorAttributeName: UIColor.whiteColor(),
NSStrokeColorAttributeName: UIColor.blackColor(),
// Note: Use negative value here if you want foreground color to show
NSStrokeWidthAttributeName: -8]
【问题讨论】:
-
您能否提供更多有关问题的信息?或者你遇到了什么错误?
-
我没有显示任何错误
标签: ios swift fonts uikit nsattributedstring