OnlineLearningViewController.m 1.83 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9
//
//  OnlineLearningViewController.m
//  Lighting
//
//  Created by 曹云霄 on 2016/11/16.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "OnlineLearningViewController.h"
10
#import "OnlineLearningTableViewCell.h"
曹云霄's avatar
曹云霄 committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

@interface OnlineLearningViewController ()<UICollectionViewDelegate,UICollectionViewDataSource>

@end

@implementation OnlineLearningViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setUpCollectionView];
}

#pragma mark - UICollectionView
- (void)setUpCollectionView
{
27 28 29 30
    self.onlineLearningFlowLayout.itemSize = CGSizeMake((ScreenWidth-100)/4.0, ((ScreenWidth-100)/4.0-50));
    self.onlineLearningFlowLayout.sectionInset = UIEdgeInsetsMake(20, 20, 20, 20);
    self.onlineLearningFlowLayout.minimumLineSpacing = 20;
    self.onlineLearningFlowLayout.minimumInteritemSpacing = 20;
曹云霄's avatar
曹云霄 committed
31 32
}

33 34 35 36 37
#pragma mark - 学习模块数据
- (void)getLearningModuleData
{

}
曹云霄's avatar
曹云霄 committed
38

39 40 41 42 43
#pragma mark - <UICollectionViewDelegate,UICollectionViewDataSource>
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return 10;
}
曹云霄's avatar
曹云霄 committed
44

45 46 47 48 49
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    OnlineLearningTableViewCell *learningCell = [collectionView dequeueReusableCellWithReuseIdentifier:@"OnlineLearningTableViewCell" forIndexPath:indexPath];
    return learningCell;
}
曹云霄's avatar
曹云霄 committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end