Explicitly disabling UIView animation in iOS4+

前端 未结 5 1023
予麋鹿
予麋鹿 2020-12-31 07:33

I have been reading that Apple recommends to use block-based animations instead of CATransaction

Before, I was using this code to disable animations:



        
5条回答
  •  感情败类
    2020-12-31 08:26

    Swift 3+

    UIView.performWithoutAnimation {
                // Update UI that you don't want to animate
            }
    

提交回复
热议问题