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
8b468187
Commit
8b468187
authored
Jan 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 布局警告
parent
06063230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+7
-8
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
8b468187
...
...
@@ -40,17 +40,17 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
110
))
var
iconImgView
=
UIImageView
(
image
:
UIImage
(
named
:
"mine_head_default"
))
let
iconImgView
=
UIImageView
(
image
:
UIImage
(
named
:
"mine_head_default"
))
view
.
addSubview
(
iconImgView
)
var
nameLabel
=
UILabel
()
let
nameLabel
=
UILabel
()
nameLabel
.
text
=
"智慧银河"
nameLabel
.
textColor
=
UIColor
(
hexString
:
"#222222"
)
nameLabel
.
textAlignment
=
NSTextAlignment
.
left
nameLabel
.
font
=
UIFont
.
systemFont
(
ofSize
:
20
)
view
.
addSubview
(
nameLabel
)
var
mobileLabel
=
UILabel
()
let
mobileLabel
=
UILabel
()
mobileLabel
.
text
=
"133****0000"
mobileLabel
.
textColor
=
UIColor
(
hexString
:
"#666666"
)
mobileLabel
.
textAlignment
=
NSTextAlignment
.
left
...
...
@@ -58,23 +58,22 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
view
.
addSubview
(
mobileLabel
)
iconImgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
view
.
snp
.
left
)
.
offset
(
16
)
make
.
centerY
.
equalTo
(
view
)
make
.
left
.
equalTo
Superview
(
)
.
offset
(
16
)
make
.
centerY
.
equalTo
Superview
(
)
make
.
width
.
height
.
equalTo
(
55
)
}
nameLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
iconImgView
.
snp
.
right
)
.
offset
(
10
)
make
.
right
.
equalTo
(
view
)
.
offset
(
-
16
)
make
.
right
.
equalTo
Superview
()
.
offset
(
-
16
)
.
priority
(
.
low
)
make
.
bottom
.
equalTo
(
view
.
snp
.
centerY
)
}
mobileLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
iconImgView
.
snp
.
right
)
.
offset
(
10
)
make
.
right
.
equalTo
(
view
)
.
offset
(
-
16
)
make
.
right
.
equalTo
(
nameLabel
)
make
.
top
.
equalTo
(
view
.
snp
.
centerY
)
}
return
view
}()
...
...
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