I’d like to get something like this:

But I was not able to remove original background (I’m using iOS5).
However, it seems Apple did it:

How can I create what I want?
Or, there is no choice and the only alternative I have is customize a UITextField?
Thanks for suggestions and ideas!
EDIT: After first reply, this is what I got:

Does anyone how can I remove white inner background without making all component semitransparent changing its alpha value? BTW, can I change white color by black color?
Try this code,It worked for me
In the above code yourSearchBar is the searchbar from which you want to remove the background,
And the for loop is searching for the background image of UISearchBar