I am building an app where I use a UICollectionView, but when I register my Cell, It gives me the error,
Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffeeca55ff8)
I have no idea what this means, can someone help me, please? I'm sorry if I didn't provide enough code, please ask me if u need more. Here is my code:
import UIKit
class ThingsToDoCollectionView: UICollectionView {
override func register(_ cellClass: AnyClass?, forCellWithReuseIdentifier identifier: String) {
register(UICollectionView.self, forCellWithReuseIdentifier: "ThingsToDoCollectionViewCell")
}
}
EDIT: here is the code for my ThingsToDoUICollectionViewCell
import UIKit
class ThingsToDoCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var GIDThumbnail: UIImageView!
@IBOutlet weak var GIDTitle: UILabel!
@IBOutlet weak var GIDDueDate: UILabel!
}