📌  相关文章
📜  uitextfield 更改占位符颜色 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:01.344000             🧑  作者: Mango

代码示例1
swift 5 
myTextfield.attributedPlaceholder =
NSAttributedString( 
  string: "placeholder text", 
  attributes: [
    NSAttributedString.Key.foregroundColor: UIColor.red
  ]
)