PDF 课件和源代码下载地址:
作者回复: UICollectionViewDelegateFlowLayout是继承自UICollectionViewDelegate,当我们设置了collectionView 的layout为UICollectionViewFlowLayout,设置collectionView的delegate就可以了哈
作者回复: 在cell或者item上,addsubview 或者 addsublayer
作者回复: 这个方法是UICollectionViewDelegateFlowLayout中的方法,在讲解中没有主动的声明使用了UICollectionViewDelegateFlowLayout,如果在类后面加入这个声明,就可以自动提醒和补全