简体   繁体   中英

Change UITableViewController background color

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 UINavigation​Controller 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.

How can i change it. I am unable to do so yet. 看色差

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM