SwpBannerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SwpBannerDelegate.h |
– swpBanner:collectionView:layout:sizeForItemAtIndexPath:
SwpBanner 代理方法,设置每个 Cell 的宽高
- (CGSize)swpBanner:(SwpBanner *)swpBanner collectionView:(UICollectionView *)collectionView layout:(UICollectionViewFlowLayout *)layout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
Parameters
swpBanner |
swpBanner |
---|---|
collectionView |
collectionView |
layout |
layout |
indexPath |
indexPath |
Return Value
CGSize
Discussion
SwpBanner 代理方法,设置每个 Cell 的宽高
Declared In
SwpBannerDelegate.h
– swpBanner:collectionView:layout:insetForSectionAtIndex:
SwpBanner 代理方法,设置每个 cell 上左下右边距
- (UIEdgeInsets)swpBanner:(SwpBanner *)swpBanner collectionView:(UICollectionView *)collectionView layout:(UICollectionViewFlowLayout *)layout insetForSectionAtIndex:(NSInteger)section
Parameters
swpBanner |
swpBanner |
---|---|
collectionView |
collectionView |
layout |
layout |
section |
section |
Return Value
UIEdgeInsets
Discussion
SwpBanner 代理方法,设置每个 cell 上左下右边距
Declared In
SwpBannerDelegate.h
– swpBanner:loadNetworkPlaceholderImageAtIndexPath:
SwpBanner 代理方法,设置网络加载图片 PlaceholderImage
- (id)swpBanner:(SwpBanner *)swpBanner loadNetworkPlaceholderImageAtIndexPath:(NSIndexPath *)indexPath
Parameters
swpBanner |
swpBanner |
---|---|
indexPath |
indexPath |
Return Value
NSString or UIImage
Discussion
SwpBanner 代理方法,设置网络加载图片 PlaceholderImage
Declared In
SwpBannerDelegate.h