0
Ich versuche, eine Reihe von UICollectionViewCells zu registrieren, aber in der Schleife bekomme ich diesen Fehler: kann nicht aufrufen 'Register' mit einem Argument lsit vom Typ '(UICollectionViewCell, forCellWithResueidentifier: String)'Kann nicht Array von UICollectionViewCells registrieren
My playground
***let cell1 = UICollectionViewCell()
let cell2 = UICollectionViewCell()
let cells = [cell1, cell2]
let collection = UICollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
for cell in cells {
collection.register(cell, forCellWithReuseIdentifier: "hello")
}***
Any ideas?
Thanks in advance