Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
- // Doesn't work
- let cell = Bundle.main.loadNibNamed("AlbumsCell", owner: self, options: nil)?[0] as! AlbumsCell
- // Also doesn't work
- let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! AlbumsCell
- return cell
- }
- class AlbumsCell: GeminiCell {
- @IBOutlet weak var albumsImageView:UIImageView!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement