// // CateView.m // ThePaperBase // // Created by zhousan on 15/9/2. // Copyright (c) 2015年 scar1900. All rights reserved. // #import "CateView.h" #define ITEM_WIDTH (rect_screen.size.width - 40)/3 #define ITEM_HEIGHT 70*rect_screen.size.width/320 @interface CateView () @end @implementation CateView - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor colorWithHexString:BackGroundColor]; } return self; } - (void)setCateListArray:(NSMutableArray *)cateListArray { if (_cateListArray != cateListArray) { _cateListArray = cateListArray; for (int i=0; i