//
|
// CourseOnlineSubListVC.swift
|
// WanPai
|
//
|
// Created by 无故事王国 on 2023/6/16.
|
//
|
|
import UIKit
|
|
class CourseOnlineSubListVC: BaseVC {
|
|
@IBOutlet weak var tableView: UITableView!
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
|
// Do any additional setup after loading the view.
|
}
|
|
|
override func setUI() {
|
tableView.delegate = self
|
tableView.dataSource = self
|
tableView.register(UINib(nibName: "CourseOnlineTCell", bundle: nil), forCellReuseIdentifier: "_CourseOnlineTCell")
|
tableView.separatorStyle = .none
|
}
|
}
|
|
extension CourseOnlineSubListVC:UITableViewDelegate{
|
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
let vc = CourseVideoDetailVC()
|
vc.title = title
|
push(vc: vc)
|
}
|
}
|
|
extension CourseOnlineSubListVC:UITableViewDataSource{
|
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
return 5
|
}
|
|
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
let cell = tableView.dequeueReusableCell(withIdentifier: "_CourseOnlineTCell") as! CourseOnlineTCell
|
return cell
|
}
|
}
|