Black Shadow appears on NavigationBar and TabBar during NavigationController Transition if Toolbar is place below Navigation Bar in iOS 7.1

Originator:mail
Number:rdar://16418845 Date Originated:2014-03-25
Status:Open Resolved:NO
Product:iOS Product Version:7.1
Classification:UI Reproducible:Always
 
Summary:
If a UIToolbar is placed directly below the navigation bar a black shadow appears temporarily on the right side of the screen in the translucent navigation bar and the translucent tab bar when a view controller is pushed onto the navigation controller stack. 

This bug was introduced in iOS 7.1. The shadow does not appear if the same code is executed on iOS 7.0.

The shadow can be prevented if the background view of the UIToolbar is hidden during the view controller transition.

Steps to Reproduce:
1. Open the attached sample project (BlurShadowExample)
2. Run the project on either the iOS Simulator or a device running iOS 7.1
3. Click the button "push next view controller"

Expected Results:
No shadow is visible during the view controller transition on the navigation bar and the tab bar.

Actual Results:
A black show is visible during the view controller transition on the navigation bar and the tab bar.

Version:
iOS 7.1

Notes:
Enable the statement

#define HIDE_TOOLBAR_BACKGROUND_DURING_TRANSITION

in THViewController.m to hide the UIToolbar background view during the view controller transition. This prevents the shadow artefact.

Configuration:


Attachments:
'BlurShadowExample.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!