Commit 23dd01b4 authored by jzhang's avatar jzhang

navigationbar颜色适配

parent 514fb312
......@@ -15,13 +15,13 @@ class BaseNavigationController: UINavigationController {
let titleTextAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 22), NSAttributedString.Key.foregroundColor: UIColor.white]
navigationBar.isTranslucent = false
navigationBar.titleTextAttributes = titleTextAttributes
navigationBar.barTintColor = kMainColor
navigationBar.barTintColor = kNavColor
navigationBar.tintColor = UIColor.white
if #available(iOS 13.0, *) {
let appearance = UINavigationBarAppearance()
// 设置导航栏背景色
appearance.backgroundColor = kMainColor
appearance.backgroundColor = kNavColor
// 字体颜色、尺寸等
appearance.titleTextAttributes = titleTextAttributes
// 带scroll滑动的页面
......
......@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<string>1.2.1</string>
<key>CFBundleVersion</key>
<string>1.2.0</string>
<key>LSRequiresIPhoneOS</key>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment