【发布时间】:2018-03-05 16:15:00
【问题描述】:
我的材质文本视图的占位符既不能通过界面生成器工作,也不能通过代码工作。
import Material
@IBOutlet weak var descriptionTextView: TextView!
我已经在 viewdidload 中尝试过
descriptionTextView.placeholderNormalColor = Color.black
descriptionTextView.placeholderLabel.text = "sdsd"
如果从代码中提取,控制台会出错
未能设置(占位符)用户定义的检查属性 (UITextView): [setValue:forUndefinedKey:]: 此类不符合键占位符的键值编码。
【问题讨论】:
标签: ios swift textview cosmicmind