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
6d18a7d7
Commit
6d18a7d7
authored
Sep 23, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的-关于我们-服务年份逻辑更改
parent
e4a6133e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
YHAboutGalaxyViewController.swift
...sses/Modules/Mine(我的)/C/YHAboutGalaxyViewController.swift
+3
-1
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHAboutGalaxyViewController.swift
View file @
6d18a7d7
...
...
@@ -68,7 +68,9 @@ class YHAboutGalaxyViewController: YHBaseViewController {
label
.
lineBreakMode
=
.
byTruncatingTail
let
paragraphStyle
=
NSMutableParagraphStyle
()
paragraphStyle
.
lineSpacing
=
5.0
// 设置行间距
let
attributedString
=
NSMutableAttributedString
(
string
:
"专注海外服务17年,总部设立在深圳,现已分别在北京、上海、广州等地建立分公司,立足于香港身份规划服务,业务逐步多元化发展。"
.
local
)
let
currentYear
=
Calendar
.
current
.
component
(
.
year
,
from
:
Date
())
let
yearsOfService
=
currentYear
-
2007
let
attributedString
=
NSMutableAttributedString
(
string
:
"专注海外服务
\(
yearsOfService
)
年,总部设立在深圳,现已分别在北京、上海、广州等地建立分公司,立足于香港身份规划服务,业务逐步多元化发展。"
.
local
)
attributedString
.
addAttribute
(
.
paragraphStyle
,
value
:
paragraphStyle
,
range
:
NSRange
(
location
:
0
,
length
:
attributedString
.
length
))
label
.
attributedText
=
attributedString
return
label
...
...
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