I currently have a UISearchBar (attached to a UISearchDisplayController), but I have reduced the width of the search bar so that I can display a custom button to the right of it when the search bar is not selected. The button is used to access other views.
However, when I select the search bar and then squeeze (or even do a search) and return to the normal view, where the search bar should be displayed using my custom button, the search bar enlivens and processes the entire room for the button and does not appear. In fact, the search bar takes up the entire width of the screen when I only want it to occupy part of it.
Is there a way to prevent the animation from showing full screen width?
This is how I defined the CGRect search string:
self = [[UISearchBar alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 250.0f, 45.0f)]
iphone animation uisearchbar uisearchdisplaycontroller
David carvalho
source share