Designing a Custom UITableViewCell with a XIB File

Here’s a quick little Got’cha that crops up when you’re making a custom UICollectionView Cell.

I like to design my custom cells with their own XIB files, so that I can edit them and set up their connection independent of their corresponding CollectionView of TableView class files. This level of abstraction just helps me to conceptualize my code.

But when doing this, it’s important to make the IBOutlet connections to the Cell object and not the File’s Owner, rather than the normal case of making those connections to the File Owner’s class.

So it’s important to keep in ming which connections need to made and to what.