简体   繁体   中英

Odd navigation bar appearing in app being prepared for iOS7

I'm updating an old app that uses a split view for iOS7 and I've got an issue with an odd navigation bar appearing. I can't figure out where it's coming from for the life of me!! I want navigation bars so I can add bar button items, but I want them to be transparent as the split view background image is providing the bar effect.

I've tried making the navigation bar transparent in the master and detail VCs, and can't make this go away.

在此处输入图片说明

在此处输入图片说明

To help diagnose where it's coming from, I added this line of code to the app delegate and got the result below, which has me even more confused.

navigationController.navigationBarHidden = YES;

在此处输入图片说明

在此处输入图片说明

If I run the same code in the simulator, the bar is still there, but it's bright purple!

在此处输入图片说明

Anyone seen this before?

navigationController.navigationBar.translucent = YES;
navigationController.navigationBar.barTintColor = [UIColor clearColor];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM