UICollectionViewCell和UITableViewCell上下左右留空白:
-(void)setFrame:(CGRect)frame{
frame.origin.x = COMMON_EDGE_DISTANCE;
frame.size.width = FULL_WIDTH - COMMON_EDGE_DISTANCE*2;
frame.origin.y+=10;
frame.size.height-=20;
[super setFrame:frame];
}
微信扫一扫
UICollectionViewCell和UITableViewCell上下左右留空白:
-(void)setFrame:(CGRect)frame{
frame.origin.x = COMMON_EDGE_DISTANCE;
frame.size.width = FULL_WIDTH - COMMON_EDGE_DISTANCE*2;
frame.origin.y+=10;
frame.size.height-=20;
[super setFrame:frame];
}
相关推荐