- UITableView Header 偏移
//方法1
if (@available(iOS 15.0, *)) {
[UITableView appearance].sectionHeaderTopPadding = 0;
}
//方法2
if (@available(iOS 15.0, *)) {
self.tableView.sectionHeaderTopPadding = 0;
}
- push&pop时tabbar变透明
UITabBarAppearance *appearance = [tabBarController.tabBar.standardAppearance copy];
if (@available(iOS 15.0, *)) {
tabBarController.tabBar.scrollEdgeAppearance = appearance;
}