Massimo Polimeni
Massimo Polimeni

Reputation: 4906

Can't set custom class for cell in table view controller

I'm really going crazy: I can't simply set my custom class for a UITableViewCell and I really don't know why.

My project

enter image description here

In my Storyboard I have a table view controller set to use ManageListsTVC.swift.

I want use a custom cell with dynamic prototypes so I create a custom class ListTVCell:

import UIKit

class ListTVCell: UITableViewCell
{

    override func awakeFromNib()
    {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool)
    {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
}

So, clean, build, go in IB, select my table view controller, select the cell and...

enter image description here

I can't see my custom class! Why? Really, I waste so much time already for this stupid problem and I don't know what's wrong.

What I already tried


I'm using Xcode 6.3.1.

Upvotes: 1

Views: 2559

Answers (1)

Massimo Polimeni
Massimo Polimeni

Reputation: 4906

--> incredibly after a complete reboot of my Mac now everything works and I can set my custom class.

Really strange but I decide to reply to my post, maybe can be helpful for someone else.

Upvotes: 5

Related Questions