How to present a UIView.xib that contains a UITableview with cell.xib !?

I am trying to add a View.xib that contains a tableView and tableViewCell will be again cell.xib created inside the same View.xib file.

I can Present the View.xib at my controller and show the tableView with rows ONLY if I create separate cell.xib outside from View.xib .

How I can access the cell from inside the View.xib and load them at the tableView ? ? ?
or how do access them to register to the tableView?

Thanks a lot

Hi @scy

Unfortunately this is not possible. As you can only pass a whole UINib instance and not a view inside of a .xib file.
So the only option here is to create a separate .xib file for your cell.


1 Like