How to use UIBezierPath with CoreAnimation?

前端 未结 3 1594
小蘑菇
小蘑菇 2021-01-15 10:30

I am using this code to remove animate my UIView to the delete button on delete button press. Here\'s the code :

UIBezierPath *movePath = [UIBezierPath bezi         


        
3条回答
  •  孤独总比滥情好
    2021-01-15 11:01

    Try changing the opacity animation to:

    CABasicAnimation *opacityAnim = [CABasicAnimation animationWithKeyPath:@"opacity"];

    and then set the animation group's removeOnCompletion to NO and its fillMode to kCAFillModeForwards like Noah Witherspoon suggested.

提交回复
热议问题