CATransaction: Layer Changes But Does Not Animate

前端 未结 3 575
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 00:57

I\'m trying to animate part of UI in an iPad app when the user taps a button. I have this code in my action method. It works in the sense that the UI changes how I expect but it

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 01:06

    It turns out you can turn the layer animation on for the root layer by setting its delegate property to nil. I don't know if it's good practice.

提交回复
热议问题