【发布时间】:2013-06-11 02:17:44
【问题描述】:
我想根据文本大小调整我的 UITextView,
CGRect frame = _text.frame;
frame.size.height = (_text.contentSize.height);
frame.size.width = _text.contentSize.width;
_text.frame = frame;
我已经尝试过这段代码,但问题是即使有 5 行文本,它也只显示 2 行(您可以滚动查看其余文本)。如何解决它只显示 5 行?
【问题讨论】:
标签: iphone ios objective-c