webwiew加载本地html,样式不正确?解决方法
来源:互联网 发布:国密算法介绍.pdf 编辑:程序博客网 时间:2024/06/01 13:53
加载方法:
//Load
-(void)loadHTMLFile {
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path isDirectory:YES];
NSString * htmlPath = [[NSBundle mainBundle] pathForResource:@"indexhelp" ofType:@"html"];
NSString * htmlCont = [NSString stringWithContentsOfFile:htmlPath encoding:NSUTF8StringEncoding error:nil];
[self.webview loadHTMLString:htmlCont baseURL:baseURL];
}
阅读全文
1 0
- webwiew加载本地html,样式不正确?解决方法
- WebView加载本地html无法显示CSS样式 。
- iOS加载本地html,css样式失效问题
- ios加载本地html,css样式失效问题
- Android WebView无法加载本地html文件的解决方法
- 加载本地Html文件
- WebView加载本地HTML
- 加载本地Html
- webview 加载本地html
- UIWebView加载本地html
- webViwe加载本地html
- mono加载本地html
- iOS 加载本地html
- UIWebView加载本地html
- 加载本地Html文件
- android 加载本地html
- 加载本地HTML文件
- 加载本地HTML文件
- 大数据学习[02]:hadoop安装配置
- 《C++ Concurrency in Action》笔记7 mutex(2)pop和top问题
- C++ 关键字——friend
- oc版内存泄漏
- 疑难:java重写返回值问题
- webwiew加载本地html,样式不正确?解决方法
- python txt文件转换乘excel文件(转)
- Revealing Module(揭示模块)模式
- word2vec using gensim
- KALI2017安装细节
- 指弹入门过程浅谈
- PAT1068 万绿丛中一点红
- 选择器
- 线程学习一 _beginthread