Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
I
IFS-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
IFS-iOS
Commits
23dd01b4
Commit
23dd01b4
authored
Jan 15, 2023
by
jzhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
navigationbar颜色适配
parent
514fb312
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BaseNavigationController.swift
IFS/IFS/Expand/Base/BaseNavigationController.swift
+2
-2
Info.plist
IFS/IFS/Resource/Info.plist
+1
-1
No files found.
IFS/IFS/Expand/Base/BaseNavigationController.swift
View file @
23dd01b4
...
...
@@ -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
=
k
Main
Color
navigationBar
.
barTintColor
=
k
Nav
Color
navigationBar
.
tintColor
=
UIColor
.
white
if
#available(iOS 13.0, *)
{
let
appearance
=
UINavigationBarAppearance
()
// 设置导航栏背景色
appearance
.
backgroundColor
=
k
Main
Color
appearance
.
backgroundColor
=
k
Nav
Color
// 字体颜色、尺寸等
appearance
.
titleTextAttributes
=
titleTextAttributes
// 带scroll滑动的页面
...
...
IFS/IFS/Resource/Info.plist
View file @
23dd01b4
...
...
@@ -17,7 +17,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.2.
0
<
/string
>
<
string
>
1.2.
1
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.2.0
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment