How do I change the toolbar's background?
+1
A:
There's one common technique, which is a giant hack, but it seems to work. Subclass UIToolbar and override -drawRect: and just have that draw whatever you want. You can then create instances of the subclass whenever you need a toolbar, and if you have a toolbar in a xib file then you can just select it and change the class to whatever your subclass is.
Kevin Ballard
2010-10-28 23:01:03
+4
A:
Why not just adjust the tintColor
property? Or is changing the tint not good enough for your purposes?
jer
2010-10-28 23:04:57
tintColor, not tiltColor
Shannon A.
2010-10-28 23:07:21
Thanks, I've changed it. typo. :)
jer
2010-10-28 23:11:36