Hi All,
I'm trying to recreate this UISearchBar (as seen in the Table Search example code):

All the examples I've seen to do this involve using a xib, however I need to do it programmatically. The problem is changing the tint color also changes the cancel button's tint:

Any ideas?