             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;
         
     }
     

//  Copyright (c) 2015年 song jufeng. All rights reserved.
//

import UIKit

class GalleryViewController:DSViewController
{
    var seg:KASegmentControl?
    var foldMenu:UIView?

        self.navigationController?.pushViewController(detail, animated: true)
        
    }
    
    
//    func collectionView(collectionView: UICollectionView, layout:UICollectionViewLayout, indexPath: NSIndexPath) ->CGSize
//    {
//        
//    }
    
    func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
    {
        return 0
    }
    
    func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell
    {
        return UICollectionViewCell()
    }
}