<div class="textarea clearfix">
<textarea class="texthuati"name="texthuati"rows=""cols=""></textarea>
<ul class="picture">
<li><img src="last filepath is file:///Users/mac/Library/Developer/CoreSimulator/Devices/06864559-159F-4404-A609-74DB19E5D379/data/Containers/Bundle/Application/08F84E5B-B5A5-4055-A774-3452B76CEA39/HaiSheng.app/0.jpg"alt="" /></li>
<li class="li_add"><div class="addpic">+</div></li>
</ul>
</div>
</body>
NSString *filePath = [[NSBundlemainBundle]pathForResource:@"fatie"ofType:@"html"];
NSURL *url = [NSURLfileURLWithPath:filePath];
NSURLRequest *request = [NSURLRequestrequestWithURL:url];
// NSURL *filePath = [[NSBundle mainBundle] URLForResource:@"fatie.html" withExtension:nil];
// NSURLRequest *request = [NSURLRequest requestWithURL:filePath];
[Web loadRequest:request];
绝对路径怎么得到?
路径有问题,取绝对路径酒可以了。