Load local Html file_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:14
Original
935 people have browsed it

NSString * resousePath = [[NSBundle mainBundle]resourcePath];
NSString * filePath = [resousePath stringByAppendingPathComponent:@"patient_agreement.html"];
NSString * htmlString = [[NSString alloc]initWithContentsOfFile :filePath encoding :NSUTF8StringEncoding error:nil];
[self.web loadHTMLString:htmlString baseURL:nil];
// [self.web loadHTMLString:htmlString baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]bundlePath]]];

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!