Commit 6a04a075 authored by Steven杜宇's avatar Steven杜宇

// vip

parent 266069af
////
//// 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()
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment