1、iOS 13 UISearchController + 導航欄 + UITableView 使用時背景顏色透明的問題
此問題導致導航欄顏色為透明,直接可以看到后面的下拉刷新控件
解決辦法如下:
if (@available(ios 13.0, *)) {
UINavigationBarAppearance *appearance = [[UINavigationBarAppearance alloc] init];
appearance.backgroundColor = [UIColor systemGray6Color];
self.navigationController.navigationBar.standardAppearance = appearance;
self.navigationController.navigationBar.scrollEdgeAppearance = appearance;
}