Need custom UINavigationBar backgroundImage based on translucent

Originator:futuretap
Number:rdar://11798038 Date Originated:03-Jul-2012 06:41 PM
Status:Closed/WontFix Resolved:
Product:iPhone SDK Product Version:6.0 beta 2
Classification:Enhancement Reproducible:Not Applicable
 
My app uses different navigation bar backgrounds:

Screen 1 has a navigationBar with style UIBarStyleBlack and translucent = YES
Screen 2 has a navigationBar with style UIBarStyleBlack and translucent = NO

Both screens need different backgroundImages that adapt to the translucent property.
I want to push Screen 2 on Screen 1 using UINavigationController.

To my knowledge there's no API that lets me do this.


If I set a specific backgroundImage for Screen 1 and change it before or after -pushViewController:animated: the image is changed without any animation. Of course, the background images should be shifted in and out synchronously with the push animation.


I propose a new API:

- [setBackgroundImage:forBarMetrics:translucent:]

or even:

- [setBackgroundImage:forBarMetrics:translucent:barStyle:]

to also include the barStyle as a parameter. Of course with a corresponding getter.

Comments

Apple response

Thank you for your feedback, it is noted. Engineering has determined that there are currently no plans to address this issue. We are now closing this bug report.


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!