custom tableview and cell in swift

UITableView and delegates

  • create cellReuseIdendifier for cell string reuse id
  • set up tableview and its delegates, implement delegate methods
  • tableView.register(YourCell.self, forCellReuseIdentifier: “”)
  • in cellForRow, tableView.dequeueReusableCell(withIdentifier: cellReuseIdendifier) as! SearchDisplayTableViewCell

UITableViewCell