【发布时间】:2015-01-21 20:06:48
【问题描述】:
我有一个 NSAttributedString 被传递到 UITextView:
NSAttributedString *str = @"A really long string ... that continues for awhile";
字符串的长度是随机的,我想将它传递给 UITextView。
myTextView.attributedText = str;
我需要 UITextView 的宽度为 300,但是如何找到高度?
【问题讨论】:
标签: ios iphone uitextview nsattributedstring