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上下左右留空白
阅读 71
2022-08-19
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];
 }
相关推荐
精彩评论(0)