[英]Backgroundcolor of NSTextfield
我使用NSTextfield
作为标签。 我尝试像这样更改backgroundColor
let myLabel = NSTextField(labelWithString: "A Label")
myLabel.backgroundColor = NSColor.green
但这是行不通的。 怎么了?
我使用NSTextfield
作为标签。 我尝试像这样更改backgroundColor
let myLabel = NSTextField(labelWithString: "A Label")
myLabel.backgroundColor = NSColor.green
但这是行不通的。 怎么了?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.