UICollectionViewCell的拖拽消失,以及布局混乱问题

来源:互联网 发布:淘宝智能版 一钻 编辑:程序博客网 时间:2024/05/16 23:37
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code

        self.imageview = [[UIImageView alloc] init];



//        self.imageview.frame = frame;

        self.imageview.frame = CGRectMake(0, 0, 90, 130);




        [self addSubview:self.imageview];
        [self.imageview release];
    }
    return self;
}



应该注意红色区域,cell里定义的内容要给确定的frame,不能和参数的frame相同..


0 0