开发者

Navigationbar does not animate when using translucent barstyle

开发者 https://www.devze.com 2023-04-02 08:37 出处:网络
This does not work [self.navigationController setNavigationBarHidden:YES animated:YES]; when I have this barstyle

This does not work

[self.navigationController setNavigationBarHidden:YES animated:YES];

when I have this barstyle

rootNavigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;

Is it any reason why it shouldn't animate away? Are there any fixes to this?

EDIT

This is NOT working:

[rootNavigationController.navigationBar setB开发者_Python百科arStyle:UIBarStyleBlack];
[rootNavigationController.navigationBar setTranslucent:YES];


The UIBarStyleBlackTranslucent is deprecated. Use UIBarStyleBlack and set the translucent property to YES instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消