Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dark shadow on navigation bar during segue transition after upgrading to Xcode 5.1 and iOS 7.1

When I am navigating back & forth between parent and child controllers in a master - detail navigation controller, i see a dark shadow on the right side of navigation bar at top. It started after I upgraded to Xcode 5.1. It feels rough and distracting. How can I get rid of it?

like image 489
Nihat Avatar asked Mar 14 '14 18:03

Nihat


People also ask

How do I customize the navigation bar in Swift?

Go to the ViewController. swift file and add the ViewDidAppear method. a nav helper variable which saves typing. the Navigation Bar Style is set to black and the tint color is set to yellow, this will change the bar button items to yellow.

How do I use the navigation bar in Xcode?

To add a navigation bar to your interface, the following steps are required: Set up Auto Layout rules to govern the position of the navigation bar in your interface. Create a root navigation item to supply the initial title. Configure a delegate object to handle user interactions with the navigation bar.


1 Answers

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

I solved this problem by setting the background color of the navigation controller's view.

like image 114
nonamelive Avatar answered Sep 21 '22 11:09

nonamelive