六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 1091|回复: 0

UITextView,UIWebView 直接显示html代码

[复制链接]
 楼主| 发表于 2013-11-18 00:26:05 | 显示全部楼层 |阅读模式
URLWithString"http://it.agoit.com/home.html"];
NSString *strHtml = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
   
////显示到UIWebView
    [self.m_web loadHTMLString:strHtml baseURL:nil];
   
/////显示到UITextView
    [self.m_TextView setContentToHTMLString:strHtml];
本文摘自:http://www.th7.cn/Program/IOS/201305/134996.shtml


该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表