Commit 0818af1b authored by Steven杜宇's avatar Steven杜宇

// plan

parent 6e33b255
...@@ -18,6 +18,7 @@ class YHPlanPolicyCarouselView: UIView { ...@@ -18,6 +18,7 @@ class YHPlanPolicyCarouselView: UIView {
// 设置为0是先停掉自动滑动定时器 // 设置为0是先停掉自动滑动定时器
bannerView.automaticSlidingInterval = 0 bannerView.automaticSlidingInterval = 0
self.indicatorView.numberOfPages = self.bannerArr.count self.indicatorView.numberOfPages = self.bannerArr.count
self.indicatorView.isHidden = self.bannerArr.count <= 1
bannerView.reloadData() bannerView.reloadData()
// 指定指示器为第一个 // 指定指示器为第一个
self.indicatorView.currentPage = 0 self.indicatorView.currentPage = 0
......
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