标签: swift uitextfield
@IBOutlet weak var resultProcessed: UITextField! var str:String = "Mike is here" resultProcessed = str
给出错误:无法将类型为'String'的值分配给'UITestField!'类型的值
答案 0 :(得分:8)
resultProcessed.text = str
您需要将其分配给text属性。
text