我试图将我的UILabel文本中心对齐,如图:
我的代码示例:
myLabel.textAlignment = .Justified myLabel.lineBreakMode = .ByWordWrapping
结果我有:
我错过了什么 ?
ios swift
ios ×1
swift ×1