         txtVw.font = UIFont.systemFontOfSize(16)
         return txtVw
     }()
-    ///懒加载CollectionView
-    lazy var collectionView:ZXAlbumCollectionView = {
-        let collcetVw = ZXAlbumCollectionView()
-        //MARK: --添加图片 闭包的循环引用
-        collcetVw.addPhotoClosure = { [weak self] ()->() in
-            self?.choosePicture()
-        }
-        collcetVw.backgroundColor = UIColor.greenColor()
-        return collcetVw
-    }()
+//    ///懒加载CollectionView
+//    lazy var collectionView:ZXAlbumCollectionView = {
+//        let collcetVw = ZXAlbumCollectionView()
+//        //MARK: --添加图片 闭包的循环引用
+//        collcetVw.addPhotoClosure = { [weak self] ()->() in
+//            self?.choosePicture()
+//        }
+//        collcetVw.backgroundColor = UIColor.greenColor()
+//        return collcetVw
+//    }()
     ///textView的代理方法
     func textViewDidChange(textView: UITextView) {
         //如果没有内容就显示占位符

    }
    
    
    ///设置主界面
    func setUpUI(){
        view.addSubview(textView)
        textView.frame = view.frame
        textView.addSubview(collectionView)
        collectionView.snp_makeConstraints { (make) -> Void in
            make.center.equalTo(textView.snp_center)
            make.width.equalTo(ScreenW - 2*albumMargin)
            make.height.equalTo(collectionView.snp_width)
        }
        // print(collectionView.frame)
        
    }

        
        if picker.sourceType == .PhotoLibrary{
            //创建一个数组,存储选择的照片
           // collectionView.appendImage(image)
            
            
        }
