Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS7/8 translucent navigationBar top right corner of the black

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.

like image 382
Tyler Avatar asked May 11 '15 04:05

Tyler


1 Answers

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

like image 162
tounaobun Avatar answered Nov 09 '22 05:11

tounaobun