<bdo id='Q5ulJ'></bdo><ul id='Q5ulJ'></ul>
<i id='Q5ulJ'><tr id='Q5ulJ'><dt id='Q5ulJ'><q id='Q5ulJ'><span id='Q5ulJ'><b id='Q5ulJ'><form id='Q5ulJ'><ins id='Q5ulJ'></ins><ul id='Q5ulJ'></ul><sub id='Q5ulJ'></sub></form><legend id='Q5ulJ'></legend><bdo id='Q5ulJ'><pre id='Q5ulJ'><center id='Q5ulJ'></center></pre></bdo></b><th id='Q5ulJ'></th></span></q></dt></tr></i><div id='Q5ulJ'><tfoot id='Q5ulJ'></tfoot><dl id='Q5ulJ'><fieldset id='Q5ulJ'></fieldset></dl></div>

    1. <small id='Q5ulJ'></small><noframes id='Q5ulJ'>

    2. <tfoot id='Q5ulJ'></tfoot>
      <legend id='Q5ulJ'><style id='Q5ulJ'><dir id='Q5ulJ'><q id='Q5ulJ'></q></dir></style></legend>
    3. 如何将本地 HTML 文件加载到 UIWebView?

      时间:2023-10-22
      <i id='glya4'><tr id='glya4'><dt id='glya4'><q id='glya4'><span id='glya4'><b id='glya4'><form id='glya4'><ins id='glya4'></ins><ul id='glya4'></ul><sub id='glya4'></sub></form><legend id='glya4'></legend><bdo id='glya4'><pre id='glya4'><center id='glya4'></center></pre></bdo></b><th id='glya4'></th></span></q></dt></tr></i><div id='glya4'><tfoot id='glya4'></tfoot><dl id='glya4'><fieldset id='glya4'></fieldset></dl></div>

      <small id='glya4'></small><noframes id='glya4'>

        <bdo id='glya4'></bdo><ul id='glya4'></ul>
      • <tfoot id='glya4'></tfoot>

          <legend id='glya4'><style id='glya4'><dir id='glya4'><q id='glya4'></q></dir></style></legend>

                <tbody id='glya4'></tbody>
              • 本文介绍了如何将本地 HTML 文件加载到 UIWebView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我们如何将自己的 html 文件加载到 UIWebView 中?

                How can we load our own html file into the UIWebView?

                推荐答案

                以下代码将在您的项目文件夹中加载一个名为 index.html 的 HTML 文件:

                The following code will load an HTML file named index.html in your project folder:

                [WebView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];
                

                这篇关于如何将本地 HTML 文件加载到 UIWebView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:向嵌入式 UIWebView 传递数据和从嵌入式 UIWebView 传递数据 下一篇:iOS - WKWebView 跨源请求仅支持 HTTP

                相关文章

                <small id='laFlk'></small><noframes id='laFlk'>

                1. <legend id='laFlk'><style id='laFlk'><dir id='laFlk'><q id='laFlk'></q></dir></style></legend>

                  1. <tfoot id='laFlk'></tfoot>

                  2. <i id='laFlk'><tr id='laFlk'><dt id='laFlk'><q id='laFlk'><span id='laFlk'><b id='laFlk'><form id='laFlk'><ins id='laFlk'></ins><ul id='laFlk'></ul><sub id='laFlk'></sub></form><legend id='laFlk'></legend><bdo id='laFlk'><pre id='laFlk'><center id='laFlk'></center></pre></bdo></b><th id='laFlk'></th></span></q></dt></tr></i><div id='laFlk'><tfoot id='laFlk'></tfoot><dl id='laFlk'><fieldset id='laFlk'></fieldset></dl></div>
                    • <bdo id='laFlk'></bdo><ul id='laFlk'></ul>