6

iOS8/iphone

When setting

navigationbar.translucent = yes;

If also set

blueVC.hidesBottomBarWhenPushed = yes;

push ViewController, navigationbar right corner displays a black.

Test Results:

Black areas are UIWindow by default. I changed the UIWindow background color to white and that fixed the issue. But this just looks better, does not completely resolved.

enter image description here

=======================

iOS7 strange animation when using hidesBottomBarWhenPushed

self.tabBarController.tabBar.hidden=YES;

This approach will lead to push the process tabbar disappear. It does not solve the problem.

Community
  • 1
  • 1
Tyler
  • 173
  • 9

1 Answers1

6

Try this code:

self.navigationController.view.backgroundColor = [UIColor whiteColor];

And I thought it is similar to this post:Dark shadow on navigation bar during segue transition after upgrading to Xcode 5.1 and iOS 7.1

Community
  • 1
  • 1
tounaobun
  • 14,570
  • 9
  • 53
  • 75
  • Thanks a lot, I've encountered the same problem and your suggestion solved it. Are there any drawbacks? – Serhii Jun 17 '16 at 14:35