I was implementing search in a UITableViewController
, so i read a lot of tutorials and they said to implement UISearchController
.
For this i have taken a UITableViewController
and embedded in a UINavigationController
then i assign UISearchController.searchBar
to tableHeaderView
. Search is working and everything is perfect.
But when i scroll down searchBar
scrolls down leaving a blank space which has different color then my tableview color.
Simple to implement way is use uiviewcobtroller put searchbar on top and below that put simple tableview now you can solved ur problem .... dont put searchbar in tableview. Hope u will resolve it .. cheers Thanks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.