+ Reply
Results 1 to 3 of 3
  1. #1
    What's Jailbreak?
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Translucent navigation bar

    Hi!

    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
    Developer
    Join Date
    Jan 2008
    Posts
    6
    Thanks
    1
    Thanked 4 Times in 2 Posts

    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.

    Max

  3. #3
    What's Jailbreak?
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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