 //  Copyright (c) 2015年 song jufeng. All rights reserved.
 //
 
-import UIKit
+import Foundation
 
-class GalleryViewController:DSViewController
+class GalleryViewController:DSViewController,UICollectionViewDataSource, UICollectionViewDelegate/*CHTCollectionViewDelegateWaterfallLayout*/
 {
     var seg:KASegmentControl?
     var foldMenu:UIView?

        self.navigationController?.pushViewController(detail, animated: true)
        
    }
}
            height: self.view.bounds.size.height - self.topView.bounds.size.height), collectionViewLayout: layout)
        mainCollection?.contentInset = UIEdgeInsets(top: 40, left: 0, bottom: 0, right: 0)
        mainCollection?.backgroundColor = UIColor.orangeColor()
        mainCollection?.dataSource = self;
        mainCollection?.delegate = self;
        
    }
    
