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
//import UIKit
// galaxy
//
//
// Created by Dufet on 2025/2/21.
//class YHVipLevelRightViewController: YHBaseViewController {
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
//
// lazy var tableView: UITableView = {
import
UIKit
// let tableView = UITableView(frame: CGRect.zero, style:.grouped)
// tableView.contentInsetAdjustmentBehavior = .never
class
YHVipLevelRightViewController
:
YHBaseViewController
{
// tableView.showsVerticalScrollIndicator = false
// tableView.backgroundColor = UIColor.white
lazy
var
tableView
:
UITableView
=
{
// tableView.separatorStyle = .none
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
grouped
)
// tableView.register(YHHomeIdentityCell.self, forCellReuseIdentifier: YHHomeIdentityCell.cellReuseIdentifier)
tableView
.
contentInsetAdjustmentBehavior
=
.
never
// tableView.delegate = self
tableView
.
showsVerticalScrollIndicator
=
false
// tableView.dataSource = self
tableView
.
backgroundColor
=
UIColor
.
white
// tableView.tableHeaderView = self.headerView
tableView
.
separatorStyle
=
.
none
// tableView.separatorStyle = .none
tableView
.
register
(
YHHomeIdentityCell
.
self
,
forCellReuseIdentifier
:
YHHomeIdentityCell
.
cellReuseIdentifier
)
// return tableView
tableView
.
delegate
=
self
// }()
tableView
.
dataSource
=
self
//
tableView
.
tableHeaderView
=
self
.
headerView
//
tableView
.
separatorStyle
=
.
none
// override func viewDidLoad() {
return
tableView
// super.viewDidLoad()
}()
//
// // Do any additional setup after loading the view.
// }
override
func
viewDidLoad
()
{
//}
super
.
viewDidLoad
()
//
//extension YHVipLevelRightViewController {
// Do any additional setup after loading the view.
//
}
// 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 {
extension
YHVipLevelRightViewController
{
// let item = self.imgItems[indexPath.row]
// cell.image = item.img
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
// }
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHHomeIdentityCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHHomeIdentityCell
// return cell
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
self
.
imgItems
.
count
{
// }
let
item
=
self
.
imgItems
[
indexPath
.
row
]
//
cell
.
image
=
item
.
img
// func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
}
// if 0 <= indexPath.row, indexPath.row < self.imgItems.count {
return
cell
// let item = self.imgItems[indexPath.row]
}
// return item.getSize().height
// }
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
// return KScreenWidth
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
self
.
imgItems
.
count
{
// }
let
item
=
self
.
imgItems
[
indexPath
.
row
]
//
return
item
.
getSize
()
.
height
// func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
}
// return self.imgItems.count
return
KScreenWidth
// }
}
//
// func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
// return 0.01
return
self
.
imgItems
.
count
// }
}
//
// func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
// return 0.01
return
0.01
// }
}
//
// func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
// return UIView()
return
0.01
// }
}
//
// func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
// return 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