簡體   English   中英

NSTextfield的Backgroundcolor

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM