好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

利用UILabel、UITextView加载html文本_html/css_WEB-ITnose

挺简单,直接上代码了

NSString *strHtml = @"提示 1、测试测试测试测试测试测试测试测试测试测试测试测试 2、测试测试测试测试测试测试测试测试测试测试";NSAttributedString * strAtt = [[NSAttributedString alloc] initWithData:[strHtml dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];self.labelContent.attributedText = strAtt;self.textViewContent.attributedText = strAtt; 

查看更多关于利用UILabel、UITextView加载html文本_html/css_WEB-ITnose的详细内容...

  阅读:33次