|
@@ -189,7 +189,8 @@ extension KXSellFlowersMainViewController{
|
189
|
189
|
reusableView = (collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: collectionSupplementTopHeaderID, for: indexPath))
|
190
|
190
|
let bannerView : CollectionViewBannerView = reusableView as! CollectionViewBannerView
|
191
|
191
|
bannerView.bannerDelegate = self
|
192
|
|
- bannerView.imageArray = ["SF_Main_banner1","SF_Main_banner2","SF_Main_banner1"]
|
|
192
|
+ bannerView.imageArray = ["SF_Main_banner1","SF_Main_banner2"]
|
|
193
|
+ bannerView.cyclePageView.reloadData()
|
193
|
194
|
return bannerView
|
194
|
195
|
}
|
195
|
196
|
else{
|
|
@@ -234,7 +235,6 @@ class CollectionViewBannerView: UICollectionReusableView ,TYCyclePagerViewDelega
|
234
|
235
|
override init(frame: CGRect) {
|
235
|
236
|
super.init(frame: frame)
|
236
|
237
|
self.addSubview(cyclePageView)
|
237
|
|
- cyclePageView.reloadData()
|
238
|
238
|
}
|
239
|
239
|
|
240
|
240
|
lazy var cyclePageView:TYCyclePagerView = {
|