Is it possible to put UISearchBar of UISearchController somewhere other than header view of UITableView?
In the apple's sample code for UISearchController, following is used.
[self.searchController.searchBar sizeToFit];
self.tableView.tableHeaderView = self.searchController.searchBar;
Is it possible to position searchBar somewhere else?
Say we want to implement a fixed UISearchBar like the one used in contacts app.
I've tried this but the searchBar doesn't appear at all.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…