I already read and saw several videos about this topic, but I canβt get it to work. Im trying to cell from xib instead of storyboard.
This is my ViewController (where I have a table view).
import UIKit class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet var tableView: UITableView! override func viewDidLoad() { super.viewDidLoad()
This is my CellTableView (the class where I have my cell):
import UIKit class CellTableView: UITableViewCell { override func awakeFromNib() { super.awakeFromNib()
I always used the Table View Cell element in the table view on the StoryBoard, but now I want to try the XIB approach.
I added the cell identifier in the XIB cell to call it using the dequeueReusableCell method.
What can i do wrong? I tried disabling the dataSource and delegate in the table view, but I got an error (and I think these are not the right steps).
source share