Results 1 to 3 of 3

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.

Thread: Translucent navigation bar

  1. #1
    Question Translucent navigation bar

    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?

    What's the secret?

  2. #2
    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.


  3. #3
    Maybe I shouldn't be using UINavigationController. It keeps resizing my view. Yet somehow UITableView manages to work with it.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts