我正在尝试在UICollectionViewCell中添加单元格内容后面的scrollview。但是,一旦我添加它,didSelectCell ...就不再起作用了。有什么想法吗?
func build(){
scrollView = UIScrollView(frame: self.bounds)
scrollView.scrollEnabled = true
//Move the cell contents into the scrollview
self.backgroundView = scrollView
self.contentView.removeFromSuperview()
scrollView.addSubview(self.contentView)
var contentSize = self.bounds
contentSize.size.width += 100
self.scrollView.contentSize = contentSize.size
}