PDA

View Full Version : UINavigationController and two issues




arnieterm
Nov 4, 2009, 08:43 AM
In my UINavigationController's navigation bar, I am using black opaque style but I need the left navigationitem button to be slightly more dark than the one currently appearing. How can we make them more darker?
On the right hand side I amusing an image for showing a help option and for that I make use of an image, [UIBarButtonItemStyleBordered]. The problem here is that I am getting two borders on this navigationitem, how can we remove this border. It seems to me that for the black opaque styled bar the application is drawing that border
Thanks
Arnieterm



dejo
Nov 4, 2009, 09:55 AM
In my UINavigationController's navigation bar, I am using black opaque style but I need the left navigationitem button to be slightly more dark than the one currently appearing. How can we make them more darker?
You don't have access to any kind of tint color for a UIBarButtonItem.
On the right hand side I amusing an image for showing a help option and for that I make use of an image, [UIBarButtonItemStyleBordered]. The problem here is that I am getting two borders on this navigationitem, how can we remove this border. It seems to me that for the black opaque styled bar the application is drawing that border
Um, it's probably drawing a border because you told it to, via the UIBarButtonItemStyleBordered. Try using UIBarButtonItemStylePlain instead.

arnieterm
Nov 5, 2009, 08:03 AM
By making use of addSubview to UINavigationBar and adding images with desired color depth you can achieve this functionality. The only thing is that as I am adding in RootViewController of a navigation based project and when goes to next screen via a push then you still have the same set of subviews that you have added in your previous screen. I think using this method one can have custom UINavigationBar.

dejo
Nov 5, 2009, 09:43 AM
By making use of addSubview to UINavigationBar and adding images with desired color depth you can achieve this functionality.
Is this in response to the first issue or the second?