[问题] UITextView改变height

楼主: prince0124 (Jay)   2017-07-21 16:20:51
请问一下
我在storyboard设定UITextView排版的时候,height设成0,
之后在用textfield里的pickerview选到某个特定的选项时,
我想让我的textView的height变长,不知道我这样的程式码对不对,
麻烦大家帮我看一下!谢谢!
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent
c
if pickerView.tag == 1 {
projectField.text = projectData[row]
if projectData.count == 2 {
textview = UITextView(frame: CGRect(x: 47.5, y: 333, width: 280, h
eight: 50
}
} else {
insuranceField.text = insuranceData[row]
}
}

Links booklink

Contact Us: admin [ a t ] ucptt.com