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

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

        UIWebView 的高度以编程方式减去 44px?

        Height of UIWebView minus 44px programmatically?(UIWebView 的高度以编程方式减去 44px?)

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

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

                  <i id='MPjFB'><tr id='MPjFB'><dt id='MPjFB'><q id='MPjFB'><span id='MPjFB'><b id='MPjFB'><form id='MPjFB'><ins id='MPjFB'></ins><ul id='MPjFB'></ul><sub id='MPjFB'></sub></form><legend id='MPjFB'></legend><bdo id='MPjFB'><pre id='MPjFB'><center id='MPjFB'></center></pre></bdo></b><th id='MPjFB'></th></span></q></dt></tr></i><div id='MPjFB'><tfoot id='MPjFB'></tfoot><dl id='MPjFB'><fieldset id='MPjFB'></fieldset></dl></div>
                  本文介绍了UIWebView 的高度以编程方式减去 44px?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以通过这样做来设置 UIWebView 的高度..

                  Is it possible to set the height of a UIWebView by doing something like this..

                  [webView.height: currentHeight - 44px];
                  

                  所以本质上,我想获取 UIWebView 的高度,然后以编程方式将其从底部缩短 44px.

                  So essentially, I want to get the height of the UIWebView and then make it 44px shorter from the bottom, programmatically.

                  推荐答案

                  像这样保存你的旧框架:

                  Save your old frame like this:

                  CGRect oldFrame = WebView.frame;
                  

                  然后设置新框架:

                  CGRect newFrame =CGRectMake(oldFrame.origin.x, oldFrame.origin.y, oldFrame.size.width, oldFrame.size.height-44);
                  [WebView setFrame:newFrame];
                  

                  就是这样:-)

                  这篇关于UIWebView 的高度以编程方式减去 44px?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  How to add and get the values from .plist in iOS(如何在 iOS 中从 .plist 添加和获取值)
                  Automatic iVars with @synthesize(使用 @synthesize 的自动 iVar)
                  How to automatically delete oldest core data entries when reach 50 entry limit?(达到 50 个条目限制时如何自动删除最旧的核心数据条目?)
                    • <bdo id='wjyV6'></bdo><ul id='wjyV6'></ul>
                      <i id='wjyV6'><tr id='wjyV6'><dt id='wjyV6'><q id='wjyV6'><span id='wjyV6'><b id='wjyV6'><form id='wjyV6'><ins id='wjyV6'></ins><ul id='wjyV6'></ul><sub id='wjyV6'></sub></form><legend id='wjyV6'></legend><bdo id='wjyV6'><pre id='wjyV6'><center id='wjyV6'></center></pre></bdo></b><th id='wjyV6'></th></span></q></dt></tr></i><div id='wjyV6'><tfoot id='wjyV6'></tfoot><dl id='wjyV6'><fieldset id='wjyV6'></fieldset></dl></div>
                    • <small id='wjyV6'></small><noframes id='wjyV6'>

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

                            <tbody id='wjyV6'></tbody>

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