【发布时间】:2017-06-24 20:42:01
【问题描述】:
我在 UITableView 上有行列表,每行包含来自 apis 的 html 字符串,我正在使用
let str = try NSMutableAttributedString(data: d,
options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType],
documentAttributes: nil)
但我无法获得每个 html 字符串的真实高度?我尝试使用 Label.sizeThatFits 但它不起作用。
如何从 UILabel 获取 html 字符串的真实高度?
谢谢
【问题讨论】: