• <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 - 标签或图像的动画移动

        iOS - animate movement of a label or image(iOS - 标签或图像的动画移动)
        <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 - 标签或图像的动画移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                    <tbody id='7TWt1'></tbody>
                  <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>