I have a custom UICollectionViewCell defined in a .xib that is connected to a custom class file. I am able to register and display this empty cell in a collection view. I'm even able to set values for the cell like background color in the awakeFromNib function in the custom class. As soon as I add a label (myLabel) to the cell in the xib and make an outlet for it in its custom class file, I get a "this class is not key value coding-compliant for the key myLabel" crash when I run. What is causing this?
I searched through the suggested duplicate question and wasn't able to find a cause there. I think the problem may have more to do with my xib containing a UICollectionViewCell instead of a UIView. Perhaps I'm missing something that requires special attention when setting this up.