LuckyLuke
LuckyLuke

Reputation: 49077

Navigationbar does not animate when using translucent 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 setBarStyle:UIBarStyleBlack];
[rootNavigationController.navigationBar setTranslucent:YES];

Upvotes: 2

Views: 378

Answers (1)

picciano
picciano

Reputation: 22701

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

Upvotes: 1

Related Questions