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
be035ca5
Commit
be035ca5
authored
Apr 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的
parent
d058397c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
YHMyPermissionSettingVC.swift
.../Classes/Modules/Mine(我的)/C/YHMyPermissionSettingVC.swift
+8
-1
YHUserInfoHeaderView.swift
...axy/Classes/Modules/Mine(我的)/V/YHUserInfoHeaderView.swift
+10
-10
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyPermissionSettingVC.swift
View file @
be035ca5
...
...
@@ -54,6 +54,11 @@ class YHMyPermissionSettingVC: YHBaseViewController {
setupUI
()
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
requestPermission
()
}
func
setupUI
()
{
gk_navTitle
=
"权限设置"
.
local
view
.
backgroundColor
=
.
white
...
...
@@ -63,7 +68,9 @@ class YHMyPermissionSettingVC: YHBaseViewController {
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
k_Height_TabBar
)
}
}
func
requestPermission
()
{
// 获取相册权限
requestPhotoLibraryPermission
{
[
weak
self
]
grant
in
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/V/YHUserInfoHeaderView.swift
View file @
be035ca5
...
...
@@ -54,7 +54,7 @@ class YHUserInfoHeaderView: UIView {
return
label
}()
private
lazy
var
info
Label
:
UILabel
=
{
private
lazy
var
like
Label
:
UILabel
=
{
let
label
=
UILabel
()
label
.
text
=
"点赞 0"
.
local
label
.
textColor
=
UIColor
(
hex
:
0x949DB5
)
...
...
@@ -188,7 +188,7 @@ class YHUserInfoHeaderView: UIView {
self
.
addSubview
(
avarImgView
)
self
.
addSubview
(
userNameLabel
)
self
.
addSubview
(
info
Label
)
self
.
addSubview
(
like
Label
)
self
.
addSubview
(
collectLabel
)
self
.
addSubview
(
scanLabel
)
self
.
addSubview
(
line1View
)
...
...
@@ -231,17 +231,17 @@ class YHUserInfoHeaderView: UIView {
make
.
height
.
equalTo
(
25.0
)
}
info
Label
.
snp
.
makeConstraints
{
make
in
like
Label
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
avarImgView
)
make
.
right
.
equalTo
(
line1View
.
snp
.
left
)
.
offset
(
-
12
)
make
.
height
.
equalTo
(
15.0
)
make
.
top
.
equalTo
(
userNameLabel
.
snp
.
bottom
)
.
offset
(
10
)
}
info
Label
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
info
Label
.
setContentHuggingPriority
(
.
required
,
for
:
.
horizontal
)
like
Label
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
like
Label
.
setContentHuggingPriority
(
.
required
,
for
:
.
horizontal
)
line1View
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
info
Label
)
make
.
centerY
.
equalTo
(
like
Label
)
make
.
size
.
equalTo
(
CGSize
(
width
:
1
,
height
:
12
))
}
...
...
@@ -249,13 +249,13 @@ class YHUserInfoHeaderView: UIView {
make
.
left
.
equalTo
(
line1View
.
snp
.
right
)
.
offset
(
12
)
make
.
right
.
equalTo
(
line2View
.
snp
.
left
)
.
offset
(
-
12
)
make
.
height
.
equalTo
(
15.0
)
make
.
top
.
equalTo
(
info
Label
)
make
.
top
.
equalTo
(
like
Label
)
}
collectLabel
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
collectLabel
.
setContentHuggingPriority
(
.
required
,
for
:
.
horizontal
)
line2View
.
snp
.
makeConstraints
{
make
in
make
.
centerY
.
equalTo
(
info
Label
)
make
.
centerY
.
equalTo
(
like
Label
)
make
.
size
.
equalTo
(
CGSize
(
width
:
1
,
height
:
12
))
}
...
...
@@ -263,7 +263,7 @@ class YHUserInfoHeaderView: UIView {
make
.
left
.
equalTo
(
line2View
.
snp
.
right
)
.
offset
(
12
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
31
)
make
.
height
.
equalTo
(
15.0
)
make
.
top
.
equalTo
(
info
Label
)
make
.
top
.
equalTo
(
like
Label
)
}
scanLabel
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
...
...
@@ -271,7 +271,7 @@ class YHUserInfoHeaderView: UIView {
make
.
left
.
equalToSuperview
()
.
offset
(
10
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
7
)
make
.
height
.
equalTo
(
98
)
make
.
top
.
equalTo
(
info
Label
.
snp
.
bottom
)
.
offset
(
17.0
)
make
.
top
.
equalTo
(
like
Label
.
snp
.
bottom
)
.
offset
(
17.0
)
}
evaluateBgImgView
.
snp
.
makeConstraints
{
make
in
...
...
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