collectionview 使用 flow layout时, header的高度, 有方法设置吗?
collectionview 使用 flow layout时, header的高度, 有方法设置吗?
|
eternityzMar 30, 2015
1
- [UICollectionViewFlowLayout headerReferenceSize]
- [UICollectionViewDelegateFlowLayout collectionView:layout:referenceSizeForHeaderInSection:] |
|
2
@eternityz 这方法是UICollectionViewDelegateFlowLayout 协议里面的, 我现在是 默认的flow layout, 没有自定义layout,所以就没有实现UICollectionViewDelegateFlowLayout协议~~
|
|
vincentxueMar 31, 2015
4
@tsinghan 默认的 flow layout 不就是 UICollectionViewFlowLayout 吗... UICollectionViewDelegateFlowLayout 是遵循 UICollectionViewDelegate 协议的。
|
|
5
@vincentxue 恩, 实现这个协议, 就好了
|