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
6a04a075
Commit
6a04a075
authored
Feb 24, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// vip
parent
266069af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
70 deletions
+70
-70
YHVipLevelRightViewController.swift
...es/Modules/Mine(我的)/C/YHVipLevelRightViewController.swift
+70
-70
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHVipLevelRightViewController.swift
View file @
6a04a075
////
//// YHVipLevelRightViewController.swift
//// galaxy
////
//// Created by Dufet on 2025/2/21.
//// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
////
//
// YHVipLevelRightViewController.swift
// galaxy
//import UIKit
//
// Created by Dufet on 2025/2/21.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//class YHVipLevelRightViewController: YHBaseViewController {
//
import
UIKit
class
YHVipLevelRightViewController
:
YHBaseViewController
{
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
grouped
)
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
backgroundColor
=
UIColor
.
white
tableView
.
separatorStyle
=
.
none
tableView
.
register
(
YHHomeIdentityCell
.
self
,
forCellReuseIdentifier
:
YHHomeIdentityCell
.
cellReuseIdentifier
)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
tableHeaderView
=
self
.
headerView
tableView
.
separatorStyle
=
.
none
return
tableView
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
}
}
extension
YHVipLevelRightViewController
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHHomeIdentityCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHHomeIdentityCell
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
self
.
imgItems
.
count
{
let
item
=
self
.
imgItems
[
indexPath
.
row
]
cell
.
image
=
item
.
img
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
self
.
imgItems
.
count
{
let
item
=
self
.
imgItems
[
indexPath
.
row
]
return
item
.
getSize
()
.
height
}
return
KScreenWidth
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
self
.
imgItems
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
0.01
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0.01
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
}
// lazy var tableView: UITableView = {
// let tableView = UITableView(frame: CGRect.zero, style:.grouped)
// tableView.contentInsetAdjustmentBehavior = .never
// tableView.showsVerticalScrollIndicator = false
// tableView.backgroundColor = UIColor.white
// tableView.separatorStyle = .none
// tableView.register(YHHomeIdentityCell.self, forCellReuseIdentifier: YHHomeIdentityCell.cellReuseIdentifier)
// tableView.delegate = self
// tableView.dataSource = self
// tableView.tableHeaderView = self.headerView
// tableView.separatorStyle = .none
// return tableView
// }()
//
//
// override func viewDidLoad() {
// super.viewDidLoad()
//
// // Do any additional setup after loading the view.
// }
//}
//
//extension YHVipLevelRightViewController {
//
// func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// let cell = tableView.dequeueReusableCell(withIdentifier: YHHomeIdentityCell.cellReuseIdentifier, for: indexPath) as! YHHomeIdentityCell
// if 0 <= indexPath.row, indexPath.row < self.imgItems.count {
// let item = self.imgItems[indexPath.row]
// cell.image = item.img
// }
// return cell
// }
//
// func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
// if 0 <= indexPath.row, indexPath.row < self.imgItems.count {
// let item = self.imgItems[indexPath.row]
// return item.getSize().height
// }
// return KScreenWidth
// }
//
// func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// return self.imgItems.count
// }
//
// func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
// return 0.01
// }
//
// func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
// return 0.01
// }
//
// func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
// return UIView()
// }
//
// func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
// return UIView()
// }
//}
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