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

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

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

      1. 如何设置动态宽度&amp;iOS自动布局中视图的高度?

        How to set dynamic width amp; height of a view in autolayout in iOS?(如何设置动态宽度amp;iOS自动布局中视图的高度?)

      2. <legend id='GTLXP'><style id='GTLXP'><dir id='GTLXP'><q id='GTLXP'></q></dir></style></legend>
      3. <tfoot id='GTLXP'></tfoot>
          <tbody id='GTLXP'></tbody>

            • <small id='GTLXP'></small><noframes id='GTLXP'>

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

                  <bdo id='GTLXP'></bdo><ul id='GTLXP'></ul>
                  本文介绍了如何设置动态宽度&amp;iOS自动布局中视图的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的超级视图中有一个 UIView.我已经设置了一些约束.现在我希望不同设备上的视图大小应该不同.如果我设置了固定宽度 &高度然后我得到错误的结果.我尝试使用用户纵横比,但这会使多个设备上的视图太大或太小.

                  I have a UIView in my super view.I have set it some constraints.Now I want the size of view should be different on different devices.If I set the fix width & height then I get the wrong result.I have tried to user aspect ratio but that make a view too big or too small on multiple devices.

                  我想要身高&宽度应该以相同的比例增加,它必须在所有设备上看起来都一样.我想要灵活的视图高度和宽度.请告诉如何做到这一点?

                  I want the height & width should increase in equal proportion that it must look same all devices.I want to have flexible height and width of the view.Please tell how to do this?

                  这是图片

                  提前致谢

                  推荐答案

                  使用大小类.它有助于为不同的设备进行不同的设置.http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorialhttps://youtu.be/IwSTXY0awng?t=2m12s

                  Use Size Classes. It helps to have different settings for different devices. http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial https://youtu.be/IwSTXY0awng?t=2m12s

                  这篇关于如何设置动态宽度&amp;iOS自动布局中视图的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  iOS AutoLayout - get frame size width(iOS AutoLayout - 获取帧大小宽度)
                  Auto layout constraints issue on iOS7 in UITableViewCell(UITableViewCell中iOS7上的自动布局约束问题)
                  How to resize superview to fit all subviews with autolayout?(如何调整超级视图的大小以适应所有具有自动布局的子视图?)
                  Springs in Auto Layout: Distribute views evenly, with constraints, in Xcode 5(自动布局中的弹簧:在 Xcode 5 中使用约束均匀分布视图)
                  reloadData() of UITableView with Dynamic cell heights causes jumpy scrolling(具有动态单元格高度的 UITableView 的 reloadData() 导致跳跃滚动)
                  What is NSLayoutConstraint quot;UIView-Encapsulated-Layout-Heightquot; and how should I go about forcing it to recalculate cleanly?(什么是 NSLayoutConstraint“UIView-Encapsulated-Layout-Height?我应该如何强制它干净地重新计算?) - IT屋-程序员

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

                    <tbody id='NlPzp'></tbody>

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

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