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

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

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

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

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

        iOS - 标签或图像的动画移动

        时间:2023-10-23
        <tfoot id='n3BwD'></tfoot>
        <i id='n3BwD'><tr id='n3BwD'><dt id='n3BwD'><q id='n3BwD'><span id='n3BwD'><b id='n3BwD'><form id='n3BwD'><ins id='n3BwD'></ins><ul id='n3BwD'></ul><sub id='n3BwD'></sub></form><legend id='n3BwD'></legend><bdo id='n3BwD'><pre id='n3BwD'><center id='n3BwD'></center></pre></bdo></b><th id='n3BwD'></th></span></q></dt></tr></i><div id='n3BwD'><tfoot id='n3BwD'></tfoot><dl id='n3BwD'><fieldset id='n3BwD'></fieldset></dl></div>
          • <small id='n3BwD'></small><noframes id='n3BwD'>

            <legend id='n3BwD'><style id='n3BwD'><dir id='n3BwD'><q id='n3BwD'></q></dir></style></legend>
              <tbody id='n3BwD'></tbody>

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

                  本文介绍了iOS - 标签或图像的动画移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何为标签或图像的移动设置动画?我只想从屏幕上的一个位置缓慢过渡到另一个位置(没什么花哨的).

                  How can I animate the movement of a label or image? I would just like to make a slow transition from one location on the screen to another (nothing fancy).

                  推荐答案

                  您正在寻找 -beginAnimations:context: 和 -commitAnimations 方法="http://developer.apple.com/iphone/library/documentation/uikit/reference/UIView_Class/UIView/UIView.html" rel="noreferrer">UIView.

                  You're looking for the -beginAnimations:context: and -commitAnimations methods on UIView.

                  简而言之,您可以执行以下操作:

                  In a nutshell, you do something like:

                  [UIView beginAnimations:nil context:NULL]; // animate the following:
                  myLabel.frame = newRect; // move to new location
                  [UIView setAnimationDuration:0.3];
                  [UIView commitAnimations];
                  

                  这篇关于iOS - 标签或图像的动画移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 iOS 中获得 arctan MATH 函数? 下一篇:链接器命令因体系结构 i386 的未定义符号而失败

                  相关文章

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

                  <tfoot id='7TWt1'></tfoot>
                  1. <small id='7TWt1'></small><noframes id='7TWt1'>

                    <legend id='7TWt1'><style id='7TWt1'><dir id='7TWt1'><q id='7TWt1'></q></dir></style></legend>

                        <bdo id='7TWt1'></bdo><ul id='7TWt1'></ul>