UINavigationBar problem

I updated the Xcode recently. Now I have to use new build system, cannot use legacy build system. With the new build system, the navigationbar leaves some white space on top of the bar. The old build system works fine, but I cannot use it anymore.

   self.navigationController.navigationBar.barTintColor = UIColorFromHex(0X005171);   self.navigationController.navigationBar.tintColor = [UIColor whiteColor];

do not have any effects.

after I changed it to self.navigationController.navigationBar.backgroundColor = UIColorFromHex(0X005171);

then bar show the right color.

How can I solve this problem to cover the top white space?

Robert Thanks

Anyone has some suggestions?

UINavigationBar problem
 
 
Q