         print(arr!)
         
         var index :Int
-        self.goodsScrollView.contentSize = CGSizeMake((CGFloat(arr!.count)*65), 30)
+        goodsScrollView.contentSize = CGSizeMake((CGFloat(arr!.count)*65), 30)
         for index = 0 ; index < arr!.count ; ++index {
             
             let btn = UIButton(type: .System)

        }
    }
    

    
    //MARK: 设置cell的数量

    @IBOutlet weak var goodsCollectionView: UICollectionView!
    
    var goods = [Goods]()
    var refreshControl = UIRefreshControl()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        loadTagView()
        loadProduct(1)

        //创建一个cell放入内存以便重用
        goodsCollectionView.registerNib(UINib(nibName: "LogMenuCollectionViewCell", bundle: nil), forCellWithReuseIdentifier: "cell")
        
        refreshControl.addTarget(self, action: "refreshData", forControlEvents: UIControlEvents.ValueChanged)
        refreshControl.attributedTitle = NSAttributedString(string: "下拉刷新数据")
        refreshControl.tintColor = UIColor.redColor()
        goodsCollectionView.addSubview(refreshControl)
    }

    override func didReceiveMemoryWarning() {
