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.
NSCollectionView 项目如何从第二个单元格开始并将第一个单元格留空?(查看示例)
丑陋的简单方法:
只需在第一个单元格中禁用用户交互并将其隐藏即可。
view.isHidden = true view.isUserInteractionEnabled = false
正确方法:
使用 NSCollectionView 注册一个新的不可见单元格类,并在第一行返回。