Answers for "dequeueReusableCellWithIdentifier returns nil"

0

dequeueReusableCellWithIdentifier returns nil

// You need to register the cell types with the tableview before it will return them
// Use either one of these depending on your setup

tableView.register(MyTableViewCell.self, forCellReuseIdentifier: "CellID1")
tableView.register(UINib(nibName: "yourNibName", bundle: nil), forCellReuseIdentifier: "CellID2")
Posted by: Guest on March-25-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language