i will like to know how do i need to change a UISearchBar from the default round curve to a rectangle.
In the target image I don't see the default shadow, so I'll mention that setting the background property to nil will remove it. I needed to do this in my project and removing the image and manipulating the border works well. I had to cast the control to get to the background property.
UITextField * x = (UITextField*)searchBarSubview;
x.background = nil;
@Keller thanks for the tip for finding the control.