标签:
#import <UIKit/UIKit.h>
@interface TonyCollectionViewCell : UICollectionViewCell
@property UIImageView *imgView;
@end
#import "TonyCollectionViewCell.h"
@implementation TonyCollectionViewCell
@synthesize imgView;
- (instancetype)initWithFrame:(CGRect)frame{
// 初始化
self=[super initWithFrame:frame];
if(self){
self.imgView=[[UIImageView alloc]initWithFrame:(CGRectMake(0, 0, 100, 100))];
[self addSubview:self.imgView];
}
return self;
}
标签:
原文地址:http://www.cnblogs.com/pengzhaov/p/4506196.html