views:

102

answers:

1

I need to show different "titlebar" for application, depending on situation. The problem with iOS4 is that black opaque UIToolbar looks so much different that black opaque UISearchBar. Have I messed up some settings or is there some work-arounds to make UIToolbar and UISearchBar use more similar coloring?

alt text

These are overlapping in real application, just wanted to show both at the same time. Usually UISearchBar covers left half of UIToolbar, so that only UISegmentedControl is visible...

A: 

You could try changing the barStyle to UIBarStyleDefault and changing the tintColor property on both; though it doesn't look like a color issue from the picture. iOS3 introduced a UIBarStyleBlack along with the UIBarStyleOpaque - might look to see if that is being set anywhere in code instead of IB.

Eric