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
a7a7e6be
Commit
a7a7e6be
authored
Apr 11, 2024
by
Steven杜宇
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 消息
parent
93c7ec4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
3 deletions
+38
-3
YHMsgViewController.swift
...alaxy/Classes/Modules/Message/C/YHMsgViewController.swift
+38
-3
No files found.
galaxy/galaxy/Classes/Modules/Message/C/YHMsgViewController.swift
View file @
a7a7e6be
...
@@ -14,7 +14,7 @@ class YHMsgViewController: YHBaseViewController {
...
@@ -14,7 +14,7 @@ class YHMsgViewController: YHBaseViewController {
lazy
var
tableView
:
UITableView
=
{
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
estimatedSectionHeaderHeight
=
1
.0
tableView
.
sectionHeaderHeight
=
42
.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
separatorStyle
=
.
none
...
@@ -65,10 +65,17 @@ class YHMsgViewController: YHBaseViewController {
...
@@ -65,10 +65,17 @@ class YHMsgViewController: YHBaseViewController {
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
k_Height_TabBar
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
k_Height_TabBar
)
}
}
}
}
}
extension
YHMsgViewController
{
@objc
func
clean
()
{
@objc
func
clean
()
{
}
}
@objc
func
didEnableNotifyBtnClicked
()
{
}
}
}
extension
YHMsgViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHMsgViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
...
@@ -92,7 +99,7 @@ extension YHMsgViewController: UITableViewDelegate, UITableViewDataSource {
...
@@ -92,7 +99,7 @@ extension YHMsgViewController: UITableViewDelegate, UITableViewDataSource {
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
1
.0
return
42
.0
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
...
@@ -106,7 +113,35 @@ extension YHMsgViewController: UITableViewDelegate, UITableViewDataSource {
...
@@ -106,7 +113,35 @@ extension YHMsgViewController: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
(
hex
:
0x3570DC
,
alpha
:
0.06
)
let
label
=
UILabel
()
label
.
textColor
=
UIColor
(
hex
:
0x121A26
)
label
.
textAlignment
=
.
left
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
13
)
label
.
text
=
"开启通知,及时掌握最新消息"
.
local
view
.
addSubview
(
label
)
let
enableBtn
=
UIButton
()
enableBtn
.
setTitle
(
"开启"
.
local
,
for
:
.
normal
)
enableBtn
.
setTitleColor
(
UIColor
(
hex
:
0x3570DC
),
for
:
.
normal
)
enableBtn
.
titleLabel
?
.
font
=
.
PFSC_R
(
ofSize
:
13
)
enableBtn
.
YH_clickEdgeInsets
=
UIEdgeInsets
(
top
:
12
,
left
:
20
,
bottom
:
12
,
right
:
20
)
enableBtn
.
addTarget
(
self
,
action
:
#selector(
didEnableNotifyBtnClicked
)
,
for
:
.
touchUpInside
)
view
.
addSubview
(
enableBtn
)
label
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
20
)
make
.
right
.
equalTo
(
enableBtn
.
snp
.
left
)
.
offset
(
-
20
)
make
.
centerY
.
equalToSuperview
()
}
enableBtn
.
snp
.
makeConstraints
{
make
in
make
.
size
.
equalTo
(
CGSize
(
width
:
26
,
height
:
18
))
make
.
right
.
equalToSuperview
()
.
offset
(
-
20
)
make
.
centerY
.
equalToSuperview
()
}
return
view
}
}
}
}
pete谢兆麟
@pete
mentioned in commit
0c7e54a2
·
Apr 11, 2024
mentioned in commit
0c7e54a2
mentioned in commit 0c7e54a274d0e35e40a014a3dd8128ed059e7716
Toggle commit list
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