Reputation: 1740
I have a TableViewController embedded in a NavigationController. I have set a UISearchBar to the tableView's header.
tableView.tableHeaderView = resultSearchController.searchBar
However, I want some additional padding between the between the searchBar and navigationBar for some message. How might I do this?
Upvotes: 0
Views: 474
Reputation: 5694
Embed your searchbar
in a UIView
, add padding with constraints, and set that UIView to the tableHeaderView
.
Upvotes: 1