Could not cast value of 'UICollectionViewCell' in UICollectionViewCell...An error occurs.

Asked 2 years ago, Updated 2 years ago, 37 views

Hello, I am a student who is currently developing iOS.

It's a question.

ios swift

2022-09-22 20:58

1 Answers

ViewDidLoad

// Register cell classes
self.collectionView!.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)

Would you like to erase it?


2022-09-22 20:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.