Custom animation when hiding UINavigationBar

两盒软妹~` 提交于 2019-12-04 12:44:08

It is happening, because you are calling [self.navigationController setNavigationBarHidden:YES animated:NO]; in the animation code but boolian values are not animatable. There is no "in between values" for bool values.

You should call [self.navigationController setNavigationBarHidden:YES animated:NO]; in a method which you schedule after the animation with

[UINavigationBar setAnimationDidStopSelector: @selector(myCoolMethod:)];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!