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

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

          <bdo id='Y9E0l'></bdo><ul id='Y9E0l'></ul>
      1. <tfoot id='Y9E0l'></tfoot>

        iOS 使用因 iPhone 尺寸之间的特征而异

        iOS Use Vary For Traits Between iPhone Sizes(iOS 使用因 iPhone 尺寸之间的特征而异)
        <tfoot id='aFokN'></tfoot>

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

                1. 本文介绍了iOS 使用因 iPhone 尺寸之间的特征而异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个按钮,我想根据所使用的 iPhone 设置不同的宽度.显然 7 Plus 的宽度更大,而线下的宽度更小.我单击按钮,单击 Vary for Traits,选择 Height,更改每个 iPhone 的约束,然后单击 Done Varying 并构建,但无论我在哪个设备上运行它,它始终保留我最后编辑的约束.

                  I have a button that I want to be different widths depending on which kind of iPhone is being used. Obviously a larger width for the 7 Plus, and smaller on down the line. I click the button, click Vary for Traits, choose Height, change constraints for each iPhone, then click Done Varying and build, but it always keeps whatever the last constraint I edited was, no matter which device I run it on.

                  推荐答案

                  Vary For Traits 与不同的 iPhone 尺寸无关.所有 iPhone(纵向)都具有相同的特征;没有什么可改变的.

                  Vary For Traits has nothing to do with different iPhone sizes. All iPhones (in portrait) have identical traits; there is nothing to vary.

                  这篇关于iOS 使用因 iPhone 尺寸之间的特征而异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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屋-程序员

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

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

                    <tfoot id='vQhQ6'></tfoot>

                              <tbody id='vQhQ6'></tbody>
                          • <legend id='vQhQ6'><style id='vQhQ6'><dir id='vQhQ6'><q id='vQhQ6'></q></dir></style></legend>