     
     convenience init(frame:CGRect,imageUrls:NSArray) {
         self.init(frame: frame, collectionViewLayout: HHCollectionViewFlowLayout.init())
-         imgUrls = imageUrls
+        imgUrls = imageUrls
     }
     
     override init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {

        pageControl?.currentPageIndicatorTintColor = currentPageControlColor ?? UIColor.orange
        pageControl?.numberOfPages = imgUrls.count
        pageControl?.currentPage = 0

        //一定要将指示器添加到superview上
        self.superview?.addSubview(pageControl!)
    }

            }
        }
        //跳转方式一：
        //        let indexpath = NSIndexPath.init(row: offset, section: 0)
        //        //滚动位置
        //        self.scrollToItem(at: indexpath as IndexPath, at: .left, animated: false)
        //跳转方式二：
        scrollView.contentOffset = CGPoint.init(x: CGFloat(offset) * scrollView.bounds.size.width, y: 0)
    }
