Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
mobile-group
galaxy-iOS
Commits
18f40d48
Commit
18f40d48
authored
Feb 13, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的
parent
ecfc017a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
YHMyUserInfoView.swift
.../galaxy/Classes/Modules/Mine(我的)/V/YHMyUserInfoView.swift
+35
-0
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHMyUserInfoView.swift
View file @
18f40d48
...
...
@@ -196,6 +196,41 @@ class YHMyUserInfoView: UIView {
make
.
right
.
equalTo
(
0
)
}
update
(
count
:
0
,
label
:
likeLabel
)
update
(
count
:
0
,
label
:
collectLabel
)
update
(
count
:
0
,
label
:
scanLabel
)
}
func
update
(
count
:
Int
,
label
:
UILabel
)
{
var
text
=
""
var
count
=
"
\(
count
)
"
if
label
.
tag
==
Self
.
likeTag
{
text
=
"点赞"
}
else
if
label
.
tag
==
Self
.
collectTag
{
text
=
"收藏"
}
else
if
label
.
tag
==
Self
.
scanTag
{
text
=
"最近浏览"
}
let
attrStr
=
NSMutableAttributedString
(
string
:
""
)
let
countAttrStr
=
NSAttributedString
(
string
:
count
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
mainTextColor
,
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
14
)
!
])
let
titleAttrStr
=
NSAttributedString
(
string
:
text
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
init
(
hex
:
0x435163
),
NSAttributedString
.
Key
.
font
:
UIFont
.
PFSC_R
(
ofSize
:
12
)])
attrStr
.
append
(
countAttrStr
)
attrStr
.
append
(
titleAttrStr
)
label
.
attributedText
=
attrStr
}
...
...
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