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上下左右留空白
最新推荐文章于 2022-11-29 11:50:32 发布