#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;

}

相关文章:

  • 2021-11-25
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-02-17
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-09-26
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案