So now, when I create the table I am registering it as such
func createTblView() -> UITableView {
let myTable = MyTableView(frame: CGRect(x: 0, y: 0, width: 0, height: 0 ))
myTable.register(UITableViewCell.self, forCellReuseIdentifier: "reuse")
myTable.backgroundColor = .white
return myTable
}
And within: func tableView( tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell_
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// let cell = UITableViewCell()
let cell = tableView.dequeueReusableCell(withIdentifier: "reuse")
var config = cell!.defaultContentConfiguration()
... additional config code below
}
This is just a quick sample, obviously I have to add code because cell is now optional, "reuse" is just a test, etc.
When I look at cell in the debugger I do see:
_reuseIdentifier NSTaggedPointerString * "reuse" 0x84c7f8963e3e2abe
It all appears correct, but since the return cell is an optional, and it wasn't without using the tableView.dequeueReusableCell, just want to make sure I am implementing this correctly.
Thanks for all your help.