i will like to know how do i need to change a UISearchBar from the default round curve to a rectangle.
Why not use the UIAppearance protocol?
UIAppearance
[[UITextField appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setBorderStyle:UITextBorderStyleRoundedRect];