| | |
| | | mentalCollectionView.dataSource = self |
| | | mentalCollectionView.contentInset = UIEdgeInsets(top: 0, left: 58, bottom: 0, right: 58) |
| | | mentalCollectionView.tag = 1000 |
| | | mentalCollectionView.isScrollEnabled = false |
| | | mentalCollectionView.register(UINib(nibName: "StudentMedalCCell", bundle: nil), forCellWithReuseIdentifier: "_StudentMedalCCell") |
| | | |
| | | exerciseCollectionView.delegate = self |
| | |
| | | mentals.append(MentalInfo(img: UIImage(named: "icon_coupon_5"), t1: "EVENTS", t2: "月度冠军")) |
| | | mentals.append(MentalInfo(img: UIImage(named: "icon_coupon_6"), t1: "MORE", t2: "更多")) |
| | | |
| | | cons_mentalViewHei.constant = ceil(Double(mentals.count) / 2) * 91 |
| | | cons_mentalViewHei.constant = ceil(Double(mentals.count) / 3) * 91 + floor(Double(mentals.count) / 3) * 30 |
| | | |
| | | navigationItem.leftBarButtonItem = UIBarButtonItem(customView: leftBtn) |
| | | |