<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

        时间:2024-04-14
        • <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:UIPageViewController 中的 UIImageView 调整大小问题 下一篇:为 UIImageView 实现 UITouchDown

                  相关文章

                    <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>