如何将状态栏与UINavigationController的动画一起移动
问题描述:
我正在尝试使用CATransform3D
动画为UINavigationController
做动画,并且还必须将状态栏与UINavigationController
一起移动。状态栏可以在不使用快照的情况下移动?如何将状态栏与UINavigationController的动画一起移动
我一直在使用快照尝试,但我需要与UINavigationController
我知道像transitioningDelegate
,modalPresentationStyle
和modalPresentationCapturesStatusBarAppearance
一些的UIViewController属性一起移动原来的状态栏。但我不知道如何使用这些属性来实现我的要求。
答
对此的一个快速入侵将隐藏没有动画的状态栏,但同时将状态栏的快照视为UIView。比你可以用任何你想要的方式制作动画。