【发布时间】:2016-08-12 21:27:21
【问题描述】:
我正在使用Xcode7 和Swift2 处理一个iOS 项目。我有一个UITextView,我正在尝试更改textColor。它具有黑色背景色。
我查看了here,但找不到setTextColor。我还在UITextView所在的UIViewController下面尝试了没有运气:
@IBOutlet weak var codeText: UITextView!
override func viewDidLoad() {
super.viewDidLoad()
self.codeText.delegate = self
codeText.textColor = UIColor.whiteColor()
}
然后我进入检查器并尝试单击UITextView 并更改textColor 那里没有改变它的运气。我做错了吗?
谢谢。
【问题讨论】:
标签: ios swift2 uitextview textcolor