CATransition push without fade

前端 未结 4 559
轮回少年
轮回少年 2021-02-04 15:38

I\'m making a navigation controller class for Mac OS X.

I want to replace the current view with a kCATransitionPush animation.
Like in this post:

4条回答
  •  难免孤独
    2021-02-04 16:32

    I suspect you're running into implicit animations - Core Animation will automatically animate layer property changes that happen outside of your own transactions.

    There's a good summary of several methods for disabling these implicit animations in these two questions:

    How to disable CALayer implicit animations?

    Disabling implicit animations in -[CALayer setNeedsDisplayInRect:]

    ...and you can read more about implicit transactions in the Core Animation docs

提交回复
热议问题