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

    1. <small id='iqcs7'></small><noframes id='iqcs7'>

      1. iphone Animation:为什么围绕 X 轴旋转 UILabel 会切断它的下半部分?

        时间:2023-05-18

        <tfoot id='fQkdv'></tfoot>
            <bdo id='fQkdv'></bdo><ul id='fQkdv'></ul>

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

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

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

                • 本文介绍了iphone Animation:为什么围绕 X 轴旋转 UILabel 会切断它的下半部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我想围绕 X 轴旋转 UILabel,并为其设置动画.但是当动画开始时,标签的文本被水平切成两半.下半部分消失,上半部分在旋转.为什么?

                  I want to rotate a UILabel around the X axis, and animating it. But when the animation starts, the text of the label is cut in two, horizontally. The bottom half disappears, the upper half is rotating. Why?

                  代码如下:

                  CATransform3D _3Dt = CATransform3DMakeRotation(radians(90.0f), 1.0, 0.0, 0.0);
                  
                  CABasicAnimation *transformAnimation = [CABasicAnimation animationWithKeyPath:@"transform"];
                  
                  transformAnimation.removedOnCompletion = NO;
                  
                  transformAnimation.toValue = [NSValue valueWithCATransform3D:_3Dt];
                  
                  transformAnimation.fillMode = kCAFillModeForwards;
                  

                  (sdk 3.0)

                  推荐答案

                  X轴?这意味着在 UILabel 的旋转一半期间将有 z >0(在屏幕前面)和一半将有 z <0(在屏幕后面).

                  X axis? That means during the rotation half of the UILabel will have z > 0 (in front of the screen) and half will have z < 0 (behind the screen).

                  如果 z == 0 有其他层,它们将覆盖您的 UILabel 的 z <0一半.

                  If there's other layers at z == 0 they will cover your UILabel's z < 0 half.

                  尝试增加标签层的zPosition.

                  这篇关于iphone Animation:为什么围绕 X 轴旋转 UILabel 会切断它的下半部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:旋转触摸视图 下一篇:iOS 6 中视图控制器的不正确旋转

                  相关文章

                • <legend id='WkUtg'><style id='WkUtg'><dir id='WkUtg'><q id='WkUtg'></q></dir></style></legend>
                • <tfoot id='WkUtg'></tfoot>

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

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

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