Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
  2.  
  3. // Doesn't work
  4. let cell = Bundle.main.loadNibNamed("AlbumsCell", owner: self, options: nil)?[0] as! AlbumsCell
  5.  
  6. // Also doesn't work
  7. let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! AlbumsCell
  8.  
  9. return cell
  10. }
  11.  
  12. class AlbumsCell: GeminiCell {
  13.  
  14. @IBOutlet weak var albumsImageView:UIImageView!
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement