44 lines
1.1 KiB
Swift
44 lines
1.1 KiB
Swift
//
|
|
// ContentTableViewController.swift
|
|
// SheetImagePickerTest
|
|
//
|
|
// Created by Shadowfacts on 10/8/19.
|
|
// Copyright © 2019 Shadowfacts. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class ContentTableViewController: UITableViewController {
|
|
init() {
|
|
super.init(style: .plain)
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
fatalError()
|
|
}
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
|
|
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "testCell")
|
|
}
|
|
|
|
// MARK: - Table view data source
|
|
|
|
override func numberOfSections(in tableView: UITableView) -> Int {
|
|
return 1
|
|
}
|
|
|
|
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
|
return 40
|
|
}
|
|
|
|
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
|
let cell = tableView.dequeueReusableCell(withIdentifier: "testCell", for: indexPath)
|
|
|
|
cell.textLabel!.text = "\(indexPath.row)"
|
|
|
|
return cell
|
|
}
|
|
}
|