Consider the following simple view controller:
class ViewController: UIViewController, UITableViewDataSource { @IBOutlet weak var tableView: UITableView!
Please make sure you are not doing any mistake while registering your nib(custom cell) in the viewdidload. Nib name and reuseIdentifiers should not be wrong.