I currently have a UISearchBar in a normal UIViewController. The SearchBar is more or less in the middle of the UIView, and when I click to enter some text, my tableView completely overlaps the searchBar, and I can't click on the clear/cancel button: I don't see the search bar anymore. When I move my searchBar completely to the top of my view, it's perfect. But I do it with Storyboard. How can I do exactly the same programmatically? Move the SearchBar to the top top of the view.
Thanks a lot for your help