label.font.pointSize 是只读属性,我不确定如何更改它。
label.font.pointSize
func font(size: CGFloat){ self.font = UIFont(descriptor: self.font.fontDescriptor, size: size) }
SWIFT 3.1
Label.font = Label.font.withSize(NewValue)
标签字体=标签字体.withSize(新值)
func font(size: CGFloat){ self.font = UIFont(descriptor: self.font.fontDescriptor, size: size) }
} - Mohammad Razipour