-1

UPDATED

I'm getting an error when I'm trying to set a label from my UICollectionViewCell to the File's Owner.

I was looking for similar questions, but the given solutions is not resolving my problem.

Here is my code:

  1. CollectionCell Interface.

CollectionCell Interface

  1. CollectionCell XIB (File's Owner).

File's Owner Custom class

File's Owner outlets

  1. Label.

Label outlets

  1. And finally and error that it throws

    Error

The error disappears when I removing the link between File's Owner and the label.

  1. UPDATE. CollectionViewController code: viewDidLoad

enter image description here

Any suggestion? Thanks a lot for your help.

Ihor Patychenko
  • 196
  • 6
  • 19

1 Answers1

0

Your question is not clear, I suggest you should show your code here:

The crash location

Because your app crash here, and I guess maybe in that method you did't product the CollectionCell correctly.

UPDATE Please check out your CollectionCell Xib here, and in identifier you should write your cell identifier:"CollectionCell"

CollectionCell

Jack Ma
  • 9
  • 2