<tfoot id='gSjCk'></tfoot>

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

      <bdo id='gSjCk'></bdo><ul id='gSjCk'></ul>

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

    2. <i id='gSjCk'><tr id='gSjCk'><dt id='gSjCk'><q id='gSjCk'><span id='gSjCk'><b id='gSjCk'><form id='gSjCk'><ins id='gSjCk'></ins><ul id='gSjCk'></ul><sub id='gSjCk'></sub></form><legend id='gSjCk'></legend><bdo id='gSjCk'><pre id='gSjCk'><center id='gSjCk'></center></pre></bdo></b><th id='gSjCk'></th></span></q></dt></tr></i><div id='gSjCk'><tfoot id='gSjCk'></tfoot><dl id='gSjCk'><fieldset id='gSjCk'></fieldset></dl></div>
      1. 动画旋转 UIImageView

        Animate Rotating UIImageView(动画旋转 UIImageView)
        • <bdo id='nVuYb'></bdo><ul id='nVuYb'></ul>

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

            <tbody id='nVuYb'></tbody>

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

                • <legend id='nVuYb'><style id='nVuYb'><dir id='nVuYb'><q id='nVuYb'></q></dir></style></legend>

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

                  问题描述

                  我想将 UIImageView 向左/向右旋转大约 10 度,但动画很流畅,而不是我看到的突然转弯:

                  I want to rotate a UIImageView by roughly 10 degrees left/right but have a smooth animation, rather than a sudden turn which I see using:

                  player.transform = CGAffineTransformMakeRotation(angle)
                  

                  任何帮助表示赞赏,谢谢.

                  Any help appreciated, thanks.

                  推荐答案

                  我使用这样的一些代码来实现类似的效果(虽然我将它旋转了 360 度):

                  I use some code like this to achieve a similar effect (though I rotate it by 360 degrees):

                  CABasicAnimation *rotate;
                  rotate = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
                  rotate.fromValue = [NSNumber numberWithFloat:0];
                  rotate.toValue = [NSNumber numberWithFloat:deg2rad(10)];
                  rotate.duration = 0.25;
                  rotate.repeatCount = 1;
                  [self.view.layer addAnimation:rotate forKey:@"10"];
                  

                  我使用与此非常相似的代码来旋转图像视图.

                  I use code very similar to this to spin an image view.

                  这篇关于动画旋转 UIImageView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  WebKit on th iPhone: is it possible to copy text to the clipboad with JavaScript(iPhone上的WebKit:是否可以使用JavaScript将文本复制到剪贴板)
                  When compiling for multiple targets in XCode, how do i ensure that certain files will not be included one target(在 XCode 中为多个目标编译时,我如何确保某些文件不会包含在一个目标中)
                  Selecting text in mobile Safari on iPhone(在 iPhone 上的移动 Safari 中选择文本)
                  Draggable UIImageView Partially Transparent amp; Irregular Shaped(可拖动的 UIImageView 部分透明 amp;不规则形状)
                  How to set the resolution of a saved image from the UIImagePickerController(如何从 UIImagePickerController 设置保存图像的分辨率)
                  Add UIImageview in Uitextview as in iMessage(像在 iMessage 中一样在 Uitextview 中添加 UIImageview)

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

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

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

                          <tfoot id='ZRaSB'></tfoot>

                              <tbody id='ZRaSB'></tbody>