Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因为当用户点击一个UICollectionView单元格时,只需实现适当的委托方法,didSelectItemAtIndexPath.
UICollectionView
didSelectItemAtIndexPath
有没有办法在用户点击集合视图中的其他任何地方时也得到通知(即使那里没有单元格)?
添加和图像视图,并在添加带有动作的 UIButton 的顶部,女巫将处理除单元格之外的事件,我想这是您可以获得解决方案的方式...