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

      <bdo id='5RFYB'></bdo><ul id='5RFYB'></ul>

      1. <tfoot id='5RFYB'></tfoot>

        <small id='5RFYB'></small><noframes id='5RFYB'>

        如何解决“帧加载中断"UIWebView 中的错误?

        How to resolve quot;Frame Load Interruptedquot; error in UIWebView?(如何解决“帧加载中断UIWebView 中的错误?)

            <bdo id='YQBFV'></bdo><ul id='YQBFV'></ul>

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

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

                    <tbody id='YQBFV'></tbody>
                  本文介绍了如何解决“帧加载中断"UIWebView 中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在我签约构建的应用程序中,我正在提取 YouTube 视频列表并允许它们显示在应用程序中.但是,当用户在 YouTube 视图的导航控制器中点击单元格并出现带有 UIWebView 的模态视图时,UIWebView 会返回错误帧加载中断".

                  In an app I'm contracted to build, I'm pulling a list of YouTube videos and allowing them to be displayed in the app. However, when a user taps a cell in the YouTube view's navigation controller and the modal view with a UIWebView appears, the UIWebView returns the error "Frame load interrupted."

                  我已经通过调试器运行了几十次,在我初始化 NSURLRequest 之前一切似乎都很顺利.当显示模态视图时,下面是在 ViewController 的 -viewDidLoad 方法中运行的代码:

                  I've run it through the debugger dozens of times, and everything seems to go well until I initialize the NSURLRequest. When the modal view is displayed, here is the code that runs in the ViewController's -viewDidLoad method:

                  - (void)viewDidLoad
                  {
                      [super viewDidLoad];
                      _webView = [[UIWebView alloc] init];
                      _webView.delegate = self;
                      NSURLRequest *request = [[NSURLRequest alloc] initWithURL:_url];
                      [_webView loadRequest:request];
                  }
                  

                  但是,当我在 [_webView loadRequest:request]; 行上调出调试器时,我看到以下内容:

                  However, when I pull up the debugger on the line [_webView loadRequest:request];, I see the following:

                  有谁知道为什么 UIWebView 返回错误?

                  Does anyone know why the UIWebView is returning the error?

                  推荐答案

                  你应该检查URL路径
                  应该是@"http://google.com"而不是@google.com"

                  You should check the URL path
                  It should be @"http://google.com" instead of @"google.com"

                  这篇关于如何解决“帧加载中断"UIWebView 中的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  iOS UIWebView app opens link in Safari(iOS UIWebView 应用在 Safari 中打开链接)
                  Close UIWebView using javascript:window.close();(使用 javascript:window.close() 关闭 UIWebView;)
                  NSCachedURLResponse returns object, but UIWebView does not interprets content(NSCachedURLResponse 返回对象,但 UIWebView 不解释内容)
                  Trouble hiding iAd banner and displaying UIWebView in its place(无法隐藏 iAd 横幅并在其位置显示 UIWebView)
                  Knowing when AJAX has loaded in UIWebView(知道何时在 UIWebView 中加载了 AJAX)
                  Load image/logo in existing HTML input field - UIWebView(在现有的 HTML 输入字段中加载图像/徽标 - UIWebView)

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

                      <bdo id='XDENP'></bdo><ul id='XDENP'></ul>
                        <tbody id='XDENP'></tbody>
                          <legend id='XDENP'><style id='XDENP'><dir id='XDENP'><q id='XDENP'></q></dir></style></legend>
                          <tfoot id='XDENP'></tfoot>

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