1
我UICollectionView停止滚动后处理自来水UICollectionView不能选择
DidSelect不滚动后不再叫
override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
print("didSelectItemAt")
}
}
细胞也滚动后不叫内部的姿态:
override open func awakeFromNib() {
// Initialization code
let tapUpInside = UITapGestureRecognizer.init(target: self, action: #selector(MainCollectionViewCell.tapPressButtonUP(_:)))
let longPress: UILongPressGestureRecognizer = UILongPressGestureRecognizer.init(target: self, action: #selector(MainCollectionViewCell.longPressButton(_:)))
longPress.delegate = self;
longPress.cancelsTouchesInView = false;
self.addGestureRecognizer(longPress)
}