CATransition push without fade

前端 未结 4 596
轮回少年
轮回少年 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条回答
  •  萌比男神i
    2021-02-04 16:17

    I think the transition from left transition includes a built-in fade. The IOS push transitions do.

    If you don't want that, you might have to roll your own push transition using Core Animation. This would be easy in iOS with UIView animations. Sadly, there is not an equivalent in Mac OS. I wish Apple would go back and add view animations to Mac OS. I get spoiled using them in iOS, and then miss them when I work on Mac applications.

提交回复
热议问题