Cell from Xib with Swift 3 : <p>I already read and saw some videos about this subject but i can't get this to work. Im trying to a cell from a xib instead of the storyboard.</p>

<p>This is my ViewController (where i have the Table View).</p>

<pre><code>import UIKit

class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {

    @IBOutlet var tableView: UITableView!


    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {

        return 5
    }

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {

        let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! CellTableView

        cell.test.text = "A";

        return cell;

    }

}
</code></pre>

<p>This is my CellTableView (the class where i have my Cell):</p>

<pre><code>import UIKit

class CellTableView: UITableViewCell {

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

    @IBOutlet var teste: UILabel!

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

        // Configure the view for the selected state
    }

}
</code></pre>

<p>I always used the Table View Cell inside the Table View on the StoryBoard but i want to try a XIB approach now.</p>

<p>I added the <strong>cell</strong> Identifier on the cell XIB to call it with the dequeueReusableCell method.</p>

<p>What i could be doing wrong? I tried to Outlet the <strong>dataSource</strong> and the <strong>delegate</strong> of the Table View but i got an error (and i think its not the right steps).</p>
