SwpBannerDataSource Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SwpBannerDataSource.h |
– swpBanner:numberOfItemsInSection:
required method
– swpBanner:cellImageForItemAtIndexPath:
required method
SwpBanner 数据源方法,设置 SwpBanner 显示默认的 Cell 显示图片的名称 | 远程 URL, 注意: customCell 值 为 NO 时 才会调用, customCell 默认为 NO
- (id)swpBanner:(SwpBanner *)swpBanner cellImageForItemAtIndexPath:(NSIndexPath *)indexPath
Parameters
swpBanner |
swpBanner |
---|---|
indexPath |
indexPath |
Return Value
NSSting or UIImage
Discussion
SwpBanner 数据源方法,设置 SwpBanner 显示默认的 Cell 显示图片的名称 | 远程 URL, 注意: customCell 值 为 NO 时 才会调用, customCell 默认为 NO
Declared In
SwpBannerDataSource.h
– swpBanner:collectionView:cellForItemAtIndexPath:
- (UICollectionViewCell *)swpBanner:(SwpBanner *)swpBanner collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
Parameters
swpBanner |
swpBanner |
---|---|
collectionView |
collectionView |
indexPath |
indexPath |
Return Value
UICollectionViewCell or UICollectionViewCell Subclass
Declared In
SwpBannerDataSource.h