swift - I can`t use Collecion Cell whith Array Foto -


i have class api code

import foundation import uikit  class gallerymodel {     var logoimage : uiimage!     var galleryimages: [uiimage]!     var title = ""      init ( title: string, logoimage: uiimage, galleryimages: [uiimage] ) {      self.title =  title     self.logoimage = logoimage     self.galleryimages = galleryimages     }     static func creategalleryimages () -> [gallerymodel] {          return [              gallerymodel(title: "saturday night @ stodola pub"  , logoimage: uiimage(named: "g1.0")!, galleryimages:  [uiimage(named: "g1.1")!,                                                                             uiimage(named: "g2.1")!,                                                                             uiimage(named: "g3.1")!,                                                                             uiimage(named: "g4.1")!,                                                                             uiimage(named: "g5.1")!,                                                                             uiimage(named: "g6.1")!,                                                                             uiimage(named: "g7.1")!,                                                                             uiimage(named: "g8.1")!,                                                                             uiimage(named: "g9.1")!,                                                                             uiimage(named: "g10.1")!,                                                                             uiimage(named: "g11.1")!,                                                                             uiimage(named: "g12.1")!,                                                                             uiimage(named: "g13.1")!,                                                                             uiimage(named: "g14.1")!,                                                                             uiimage(named: "g15.1")!,                                                                             uiimage(named: "g16.1")!,                                                                             uiimage(named: "g17.1")!,                                                                             uiimage(named: "g18.1")!,                                                                             uiimage(named: "g19.1")!,                                                                             uiimage(named: "g20.1")!]), 

so can provide array of image:

class fotocell: uicollectionviewcell {      var infofoto: gallerymodel! {         didset{             updatefoto ()         }      }     @iboutlet weak var fotogalleryimage: uiimageview!      func updatefoto () {     // here problem : nsarray in subtype of uiimage          fotogalleryimage?.image = infofoto.galleryimages     }  } 

i made photo album (but appearance) . , want when click on image album opened window many photos. spent iboutlet image. add image took pictures of array. problem her: fotogalleryimage?.image = infofoto.galleryimages. added nsarrey not subtype uiimage. should change well?


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -