I'm just confused with the following code that gets executed in a UICollectionViewController
instantiated from a xib file:
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
return 1.0;
}
which is declared in the protocol UICollectionViewDelegateFlowLayout
. However, there is nowhere in the UICollectionViewController
showing that it would conform to this protocol, as declared in the UICollectionViewController
:
NS_CLASS_AVAILABLE_IOS(6_0) @interface UICollectionViewController : UIViewController <UICollectionViewDelegate, UICollectionViewDataSource>
Can anyway explain why UICollectionViewController
would conform to UICollectionViewDelegateFlowLayout
?