【发布时间】:2021-01-11 12:37:08
【问题描述】:
当我在 tableView 上滚动时,navigationItem 不会隐藏并稍微移动到底部。 我在较低版本(iOS 13、iOS 12)上尝试过,但是这个问题发生在 iPhone 11(iOS 14)上。 我搜索了任何资源以找到解决方案,但它仍然对我没有帮助。 那我现在该怎么办?
UINavigationBar.appearance().barTintColor = UIColor.playerDefaultColor
UINavigationBar.appearance().isTranslucent = false
UINavigationBar.appearance().setBackgroundImage(UIImage(), for: .default)
UINavigationBar.appearance().shadowImage = UIImage()
UINavigationBar.appearance().titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
UINavigationBar.appearance().tintColor = UIColor.white
UITabBar.appearance().tintColor = UIColor.premiumFontActiveColor
【问题讨论】:
标签: ios swift uitableview uiscrollview uinavigationitem