iOS 8 animation bug

后端 未结 4 1644
日久生厌
日久生厌 2020-12-28 15:47

I have a simple method for animate view.

-(void)animateSelf
{
    CABasicAnimation * animation;

    animation = [CABasicAnimation animationWithKeyPath:@\"po         


        
4条回答
  •  感情败类
    2020-12-28 16:10

    You have three animations:

    1. You animate the layer's position
    2. You animate the layer's transform
    3. You animate the view's frame which in turn animates the layer's position.

    Animations 1 and 3 collide.

    • On iOS 7 the behavior is that animation 3 cancels animation 1.
    • On iOS 8 the behavior is that animations 1 and 3 run concurrently ("Additive Animations").

    I suggest you just remove animation 1 and also check out the related WWDC 2014 video (I think it was Building Interruptible and Responsive Interactions).

提交回复
热议问题