Setting the UICollectionViewLayout class in a storyboard

I want to use this great UICollectionView layout: https://github.com/bryceredd/RFQuiltLayout

As expected, he wants me to set the Collection View layout class for him. This cannot be done because Xcode does not accept RFQuiltLayout in the class field (it beeps and clears the field if I select something else).

I also tried this with a new, empty project.

What did I misunderstand?

(Tried both in Xcode 4.2.1 / iOS 6, and in Xcode 5 / iOS 7, OS X Mavericks.)

+6
source share
1 answer

You are probably trying to set it in the Class Identity Inspector field, which is intended for a class or subclass of UICollectionView.

Instead, open the CollectionView Attributes Inspector, choose Layout > Custom and below Class > RFQuiltLayout :

enter image description here

+14
source

All Articles