【发布时间】:2014-03-22 17:37:56
【问题描述】:
我想将内容添加到项目资源中可用的 html 文件中。 例如:- 下面是 html,里面有一些标签
<body >
<div id="abc">
<div>{feed}<br /></div>
<div >{date}</div>
</div>
</body>
我想用其中的一些字符串替换 {feed} ,{date} 并在 UIwebview 中显示该 html
请给我一些指示来实现它
提前致谢
【问题讨论】:
-
你可以使用@代替提要和日期,然后将提要和数据传递给 [NSString stringWithForm@"html%@%@",feed,date]
-
谢谢大家的回答:)