     //RxSwift资源回收包
     private let disposeBag = DisposeBag()
     
-    public init(frame: CGRect,delegate:ZXCircleViewDelegate) {
+    public override init(frame: CGRect) {
         super.init(frame: frame)
-        self.circleDelegate = delegate
+        self.initUI()
+    }
+    
+    public convenience init() {
+        self.init(frame:CGRectZero)
+        self.initUI()
+    }
+    
+    override public func layoutSubviews() {
+        super.layoutSubviews()
+        
+        self.scrollView.fillSuperview()
+        self.control.anchorToEdge(.Bottom, padding: 0, width: self.frame.size.width, height: 20)
+    }
+    
+    required public init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    private func initUI() {
         self.scrollView = UIScrollView()
         self.scrollView.delegate = self
         self.scrollView.pagingEnabled = true

    
    //dataIndex 是数据源的下标  UIndex是UI布局的下标
    private func dataIndexFromUIndex(index: Int) -> Int {
         let count = self.circleDelegate.numberOfItemsInCircleView(self)
         var dataIndex = index - 1
        if index == 0 {
            dataIndex = count - 1
        }else if (index == count + 1) {
            dataIndex = 0
        }
        return dataIndex

        self.titleLabel.anchorAndFillEdge(Edge.Bottom, xPad: 0, yPad: 20, otherSize: 20)
    }
    
    //    func configure(model:CCArticleModel) {
    //        imageView.sd_setImageWithURL(NSURL(string:model.imageURL!)!
    //        )
    //
    //        titleLabel.text = model.title
    //    }
    
    public func mutableCopyWithZone(zone: NSZone) -> AnyObject {
        let cell =  ZXCircleViewCell(frame: self.frame)
