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

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

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

    1. 从 UIWebView 中移除阴影

      时间:2023-05-31

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

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

          <bdo id='HCyn0'></bdo><ul id='HCyn0'></ul>
          <tfoot id='HCyn0'></tfoot>

              <tbody id='HCyn0'></tbody>

              1. <legend id='HCyn0'><style id='HCyn0'><dir id='HCyn0'><q id='HCyn0'></q></dir></style></legend>
              2. 本文介绍了从 UIWebView 中移除阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我使用 web 视图来显示小的 pdf 文件.为了美观,我想删除 PDF 周围的灰色边框.有什么办法吗?我查看了各种资源,这些资源似乎都不起作用,或者解决方案在 iOS5 中不再起作用.

                I use a web view to display small pdf files. In the interest of aesthetics, I'd like to remove the grey border around the PDF. Is there any way around it? I've looked at various resources none of which seem to work or the solution no longer works in iOS5.

                另外,如果只有一页,有没有办法停止滚动?

                Also, is there any way of stopping the scroll if there's only one page?

                谢谢.

                推荐答案

                阴影实际上是 UIScrollView 的 UIImageView 子视图(或 iOS5 UIWebView 中的等价物).

                The shadows are actually UIImageView subviews of the UIScrollView (or the equivalent in iOS5 UIWebView).

                所以在 iOS4 中:

                So in iOS4:

                for (UIView* subView in [webView subviews])
                {
                    if ([subView isKindOfClass:[UIScrollView class]]) {
                        for (UIView* shadowView in [subView subviews])
                        {
                            if ([shadowView isKindOfClass:[UIImageView class]]) {
                                [shadowView setHidden:YES];
                            }
                        }
                    }
                }
                

                iOS5 及以上版本:

                and in iOS5 and above:

                for (UIView* shadowView in [webView.scrollView subviews])
                {
                    if ([shadowView isKindOfClass:[UIImageView class]]) {
                        [shadowView setHidden:YES];
                    }
                }
                

                这篇关于从 UIWebView 中移除阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:不同的单元格背景颜色取决于 iOS 版本(4.0 到 5. 下一篇:在 iOS 5.x 中增加 UITextView 中表情符号字符的字体

                相关文章

                最新文章

                <legend id='9UwBm'><style id='9UwBm'><dir id='9UwBm'><q id='9UwBm'></q></dir></style></legend>
                  <bdo id='9UwBm'></bdo><ul id='9UwBm'></ul>

                1. <small id='9UwBm'></small><noframes id='9UwBm'>

                    <tfoot id='9UwBm'></tfoot>

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