Home  >  Article  >  Web Front-end  >  Load local Html file_html/css_WEB-ITnose

Load local Html file_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:40:14936browse

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.

Statement:
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