- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
[self.imageview release];
}
return self;
}
{
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.imageview release];
}
return self;
}
应该注意红色区域,cell里定义的内容要给确定的frame,不能和参数的frame相同..