This started to happen out of the blue. Any ideas: Code:
CUSTOMCLASSNAME (I have replaced the actual class name as it contains the name of the client.)
Initialis
In my case (pretty stupid one), I used the if let
syntax inside cellForRowAt
like that:
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if let cell = tableView.dequeueReusableCell(withIdentifier: "carCell", for:
indexPath) as? carTableViewCell {
// Did some stuff here
return CarTableViewCell()
else {
return CarTableViewCell()
}
}
As you may see, I returned i generic carTableViewCell(), and that's what gave me that despicable error... I hope it will ever help someone haha (:
Happy Coding!