Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要 QuartzCore.framework 将边框颜色添加到文本字段,如何?
如果你导入了 UIKit,你不需要导入 QuartzCore。这是代码
let textField = UITextField() textField.layer.borderColor = UIColor.redColor().CGColor