I got this example of using custom cells in my Swift project :
let cell = tableView.dequeueReusableCell(withIdentifier: "LabelCell", for: indexPath)
as! HeadlineTableViewCell
But in my project, I actually have an array of Custom cells called mycells.
So I thought I could simply change it to :
let cell = tableView.dequeueReusableCell(withIdentifier: "LabelCell", for: indexPath)
as! type(of:allCells[indexPath.row])
But no. The compiler complains about this :
Cannot create a single-element tuple with an element label
Maybe this is just dumb but I cant get why it wont work. Can someone help me and clarify whats going on?