Home > OS >  Swift TableView Cell Unable to Display the data from API
Swift TableView Cell Unable to Display the data from API

Time:02-12

I created four label inside the table view cell to fetch the data from Api . The link is enter image description here

CodePudding user response:

You are registering a generic cell:

self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: "DisplayView1")

You need to register your custom cell:

self.tableView.register(DisplayView.self, forCellReuseIdentifier: DisplayView.identifier)
  • Related