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

      1. <legend id='G6xnz'><style id='G6xnz'><dir id='G6xnz'><q id='G6xnz'></q></dir></style></legend>

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

      2. <tfoot id='G6xnz'></tfoot>

        • <bdo id='G6xnz'></bdo><ul id='G6xnz'></ul>

        如何在 UIImage 中只显示图像的一部分?

        How to show in UIImage just a part of image?(如何在 UIImage 中只显示图像的一部分?)

          <legend id='2i3fW'><style id='2i3fW'><dir id='2i3fW'><q id='2i3fW'></q></dir></style></legend>

              <tbody id='2i3fW'></tbody>
              <bdo id='2i3fW'></bdo><ul id='2i3fW'></ul>

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

                  <small id='2i3fW'></small><noframes id='2i3fW'>

                  <tfoot id='2i3fW'></tfoot>
                • 本文介绍了如何在 UIImage 中只显示图像的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有 UIImageView 在其中显示 50x100 图像.

                  I have UIImageView in which I'm showing 50x100 image.

                  我只想显示 50x50 图像的一部分(顶部)?

                  I want to show only a part of image 50x50 (top part)?

                  我该怎么做?

                  推荐答案

                  我可能有一个解决方案给你.看看这是否有效.在 Interface Builder 中有一个关于图像内容填充属性的选项.您可以将其设置为 top-left.按照界面生成器中的图像 -

                  I might have a solution for you. See if this works. In Interface Builder there is an option about Image content fill properties. You can set it to top-left. Follow the image in interface builder -

                  在此之后将 UIImageView 的大小设置为 50x50,并选中clip-subviews"...

                  After this set the size of UIImageView to 50x50 with "clip-subviews" checked...

                  这篇关于如何在 UIImage 中只显示图像的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Resume game cocos2d(恢复游戏 cocos2d)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)

                    <tbody id='MIYyI'></tbody>
                    <legend id='MIYyI'><style id='MIYyI'><dir id='MIYyI'><q id='MIYyI'></q></dir></style></legend>
                  1. <small id='MIYyI'></small><noframes id='MIYyI'>

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

                          • <tfoot id='MIYyI'></tfoot>