- (void)setFrame:(CGRect)frame{
frame.origin.x += 10;
frame.origin.y += 10;
frame.size.height -= 10;
frame.size.width -= 20;
[super setFrame:frame];
}
/cell 的样式
cell.layer.cornerRadius = 8;
cell.layer.shadowColor = [UIColor colorWithRed:153/255.0 green:153/255.0 blue:153/255.0 alpha:0.9].CGColor;
cell.layer.shadowOffset = CGSizeMake(0,2);
cell.layer.shadowOpacity = 1;
cell.layer.shadowRadius = 10;
ios 表格之间的间隔与阴影
最新推荐文章于 2021-07-01 09:41:59 发布