 
 import UIKit
 
+let PhotoBrowserControllerIdentifer = "PhotoBrowserControllerIdentifer"
 class PhotoBrowserController: UIViewController {
     
     var index : Int?

    private var closeBtn : UIButton = {
        let btn = UIButton()
        btn.setTitle("关闭", forState: UIControlState.Normal)
        btn.setTitleColor(UIColor.whiteColor(), forState: UIControlState.Normal)
        return btn
    }()
    
    private var saveBtn : UIButton = {
        let btn = UIButton()
        btn.setTitle("保存", forState: UIControlState.Normal)
        btn.setTitleColor(UIColor.whiteColor(), forState: UIControlState.Normal)
        return btn
    }()
    

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
        collectionV.dataSource = self
        closeBtn.addTarget(self, action: "dismissController", forControlEvents: UIControlEvents.TouchUpInside)
        collectionV.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: PhotoBrowserControllerIdentifer)
    }

    func setupUI(){
