[ios] swift html 적용시키기
guard let text = "ㅁㅁㅁㅁㅁㅁ.<br><br>ㅠㅠㅠㅠㅠ".data(using: String.Encoding.unicode) else {
return
}
try? mTvText.attributedText = NSAttributedString(data: text, options: [.documentType:NSAttributedString.DocumentType.html], documentAttributes: nil)
self. mTvText.sizeToFit()
'ios,swift' 카테고리의 다른 글
[ios] swift Found an unexpected Mach-O header code: 0x72613c21 해결방법 (0) | 2020.01.31 |
---|---|
[ios] swift uitextview keyboard done (0) | 2020.01.31 |
[ios] swift NSMutableAttributedString color 부분변경방법 (0) | 2020.01.31 |
[ios] swift linker command failed with exit code 1 해결방법 (0) | 2020.01.30 |
[ios] swift html alert 반응 불러오기 (0) | 2020.01.30 |