一:textview
文字改变 textview高度自适应
func textViewDidChange(textView: UITextView) {
let height = textView.contentSize.height
print("(height)")
self.frame.size.height = height
}
一:textview
文字改变 textview高度自适应
func textViewDidChange(textView: UITextView) {
let height = textView.contentSize.height
print("(height)")
self.frame.size.height = height
}
本文标题:swift 实战 第二节
本文链接:https://www.haomeiwen.com/subject/cluakttx.html
网友评论