I want to use a translucent navigation bar in my application. Thus I switched the bar style to UIBarStyleBlackTranslucent.
This works fine for table views:
- The table view grows to slide behind the navigation bar
- The table's contents adjust to show only below the navigation bar
HOWEVER, I cannot get the transparent bar to work with other UIView classes:
- The view remains clipped / sized to stay below the navigation bar
- The navigation bar is drawn over a white background (where does this come from)
- Thus the navigation bar shows as 50% grey
Anybody else tried working with translucent navigation bars?
Use UIView's setBackgroundColor method to make the background of the UINavigationBar clear... Also make sure you're placing the view's x,y coordinates to that of the nav bar so it draws underneath the bar.