I have set tintcolor for my UIToolBar.It displays Correctly in ios 6.0 but it shows black color on ios 5.0 simulator. My code is here
originalBounds = mysearchBarBarItem.customView.bounds;
mySearchBar.bounds = CGRectMake(0,0,215,44);
myTopToolbar.tintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:NAVIGATION_BAR_BACKGROUND]];
myTopToolbar.barStyle = UIBarStyleDefault;
mySearchBar.barStyle = UIBarStyleDefault;
mySearchBar.tintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:NAVIGATION_BAR_BACKGROUND]];
[myTopToolbar setItems:toolBarItemsArray animated:YES];
I don't know if this can make a difference, but you could try to change the order in which you assign the style and color of the bar. Try:
It's possible that assigning the style after changing the tintcolor resets the color.
EDIT
Why this would affect only ios5 and not ios6 I don't know.
Try to do this in your app delegate implementation class this will change the toolBar and searchBar color throughout the application
for setting tint of searchbar
OR
for setting tint of toolbar
OR
for setting background image
You can use
UIAppearance
(for iOS 5.0 and above) .Try to set color property
If this works fine in both iOS6 and iOS5, then problem should be in image.
Edited Check this question
iphone:UIToolbar when set to tint color behaves differently on iOS 5 and ios6 simulator?
I have solveed It. just converted the Image to RGB Values and set like this.