Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个包含 UITableView 和搜索栏的应用程序。我为 UITableView 的背景设置了清晰的颜色,但是当我在搜索栏中搜索项目时,TableView 背景颜色变为白色。我怎样才能避免这个问题?
问题是,一旦您开始搜索,searchbar 就有自己的 tableview 用于显示搜索结果。我不确定有什么方法可以处理该 tableview 以便可以更改颜色。
为 tableview 所在的视图设置相同的背景。
希望它有帮助,马里奥