Commit e9e7e7aa authored by David黄金龙's avatar David黄金龙

处理banner 无限循环的问题

parent 564c2fc1
...@@ -41,6 +41,7 @@ class YHServiceBannerView: UIView { ...@@ -41,6 +41,7 @@ class YHServiceBannerView: UIView {
let view = FSPagerView() let view = FSPagerView()
view.delegate = self view.delegate = self
view.dataSource = self view.dataSource = self
view.isInfinite = true
view.automaticSlidingInterval = 3 view.automaticSlidingInterval = 3
view.register(YHServiceBannerCollectionViewCell.self, forCellWithReuseIdentifier: "cell") view.register(YHServiceBannerCollectionViewCell.self, forCellWithReuseIdentifier: "cell")
view.itemSize = FSPagerView.automaticSize view.itemSize = FSPagerView.automaticSize
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment