ChrisRockC / MyWiki

点-线-面
0 stars 0 forks source link

OS原生界面加载部分html代码 #178

Open ChrisRockC opened 7 years ago

ChrisRockC commented 7 years ago
superiorityDic1 = "<p style=\"text-align:center;\"><img src=\"http://www.haoyuanqu.com/core/uploads/20150925/12371443149400026.jpg\"/></p><p><br/></p>";
ChrisRockC commented 7 years ago
_detailWeb = [[UIWebView alloc] initWithFrame:(CGRectMake(15, 60, kScreenWidth - 30, 200))];
[self.contentView addSubview:_detailWeb];
[_detailWeb loadHTMLString:_product.content baseURL:nil];

// 这样做是没有任何适配的