1000x.AltCoins
1000x.AltCoins

Reputation: 1

How can I skip the first cell in a NSCollectionView?

How can NSCollectionView items begin at the second cell and leave the first cell empty? (View Example)

Upvotes: 0

Views: 64

Answers (1)

Rafael Francisco
Rafael Francisco

Reputation: 310

Ugly easy way:

Just disable user interaction in the first cell and hide it.

view.isHidden = true
view.isUserInteractionEnabled = false

Correct way:

Register a new invisible cell class with the NSCollectionView and return in just on the first row.

Upvotes: 0

Related Questions