I have a UITableView
which I programatically create and I have added a UISearchBar
/UISearchDisplayController
as a subview. It looks like this:
That's all fine but when I touch it to invoke searching the frames changes strangely, any idea why?
I've tried manually setting the frame, doesn't seem to help.
The UITableView
is a property of a UIViewController
.
I think it is a duplicate of this question UIsearchBar. Can't change frame.
The answer being that you can't mess with UISearchBar's frame.