我创建了一个UITextView,可以键入粗体并将图像插入文本当我保存到Firebase时,它另存为字符串文本,并以普通文本形式检索到标签(无粗体,无图像)
我如何保留所有文本字体并准确显示在标签中
将label's attributedText设置为textView's attributedText
label's
attributedText
textView's
label.attributedText = textView.attributedText
另外,将label's numberOfLines设置为0
numberOfLines
0
label.numberOfLines = 0