How can i apply rounded corners and a border to the background of UISearchBar in ios7? I am able to change the background color of the bar.

Something like this

![enter image description here](https://i.stack.imgur.com/D02Rp.png)

Thanks