Split View Master Navigation Controller Popover's Shadow Incorrect

Originator:frank
Number:rdar://11559013 Date Originated:5/30/12
Status:Open Resolved:
Product:iPad Product Version:5.1
Classification: Reproducible:Yes
 
Summary:

When presented as a popover, a navigation controller in the master view of a split view controller has a shadow that incorrectly applies a toolbar gradient when no toolbar is present and fails to apply it when a toolbar is present. 

Steps to Reproduce:

1. Create an app from the Master-Detail template in Xcode. Select "iPad" for the Device Family (leave checkboxes unchecked). 
2. Set the background color for the detail view in the xib to Dark Gray (not necessary, but increases visibility)
3. Run the app on the iPad 5.1 Simulator in portrait mode and tap the "Master" button
4. Note the shadow at the bottom of the popover has a gradient artifact
5. Now add a line "masterNavigationController.toolbarHidden = NO;" to the app delegate after the master navigation controller is instantiated but before it is added to the split view controller
6. Re-run the app in portrait mode and tap the "Master" button
7. The gradient artifact (which might look reasonable next to a toolbar) is gone. 

Expected Results:

The gradient effect in the shadow should either always be absent or only appear when a toolbar is present. 

Actual Results:

The gradient effect is present without a toolbar and absent with one. 

Regression:

N/A

Notes:

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!