Thursday 15 August 2013

ios - Inserting contentView inside another view voids cell touches -



ios - Inserting contentView inside another view voids cell touches -

i'm attempting add together scrollview behind cell contents in uicollectionviewcell. however, 1 time add together it, didselectcell... not work anymore. ideas?

func build(){ scrollview = uiscrollview(frame: self.bounds) scrollview.scrollenabled = true //move cell contents scrollview self.backgroundview = scrollview self.contentview.removefromsuperview() scrollview.addsubview(self.contentview) var contentsize = self.bounds contentsize.size.width += 100 self.scrollview.contentsize = contentsize.size }

ios swift

No comments:

Post a Comment