@@ -36,12 +36,12 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
3636 self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
3737 self.backgroundColor = [UIColor clearColor ];
3838 if (!_userIconView) {
39- _userIconView = [[UIImageView alloc ] initWithFrame: CGRectMake (10 , 10 , 33 , 33 )];
39+ _userIconView = [[UIImageView alloc ] initWithFrame: CGRectMake (10 , 12 , 33 , 33 )];
4040 [_userIconView doCircleFrame ];
4141 [self .contentView addSubview: _userIconView];
4242 }
4343 if (!_titleLabel) {
44- _titleLabel = [[UILabel alloc ] initWithFrame: CGRectMake (kProjectTopicCell_PadingLeft , 10 , kProjectTopicCell_ContentWidth , 20 )];
44+ _titleLabel = [[UILabel alloc ] initWithFrame: CGRectMake (kProjectTopicCell_PadingLeft , 12 , kProjectTopicCell_ContentWidth , 20 )];
4545 _titleLabel.font = kProjectTopicCell_ContentFont ;
4646 _titleLabel.textColor = [UIColor colorWithHexString: @" 0x222222" ];
4747 [self .contentView addSubview: _titleLabel];
@@ -95,7 +95,7 @@ - (void)layoutSubviews{
9595 [_userIconView sd_setImageWithURL: [_curTopic.owner.avatar urlImageWithCodePathResizeToView: _userIconView] placeholderImage: kPlaceholderMonkeyRoundView (_userIconView)];
9696 [_titleLabel setLongString: _curTopic.title withFitWidth: kProjectTopicCell_ContentWidth maxHeight: kProjectTopicCell_ContentHeightMax ];
9797
98- CGFloat curBottomY = 10 + [_curTopic.title getHeightWithFont: kProjectTopicCell_ContentFont constrainedToSize: CGSizeMake (kProjectTopicCell_ContentWidth , kProjectTopicCell_ContentHeightMax )] + 10 ;
98+ CGFloat curBottomY = 12 + [_curTopic.title getHeightWithFont: kProjectTopicCell_ContentFont constrainedToSize: CGSizeMake (kProjectTopicCell_ContentWidth , kProjectTopicCell_ContentHeightMax )] + 12 ;
9999 CGFloat curRightX = kProjectTopicCell_PadingLeft ;
100100
101101 _tagsView.tags = _curTopic.labels ;
@@ -124,9 +124,9 @@ +(CGFloat)cellHeightWithObj:(id)aObj{
124124 CGFloat cellHeight = 0 ;
125125 if ([aObj isKindOfClass: [ProjectTopic class ]]) {
126126 ProjectTopic *curTopic = (ProjectTopic *)aObj;
127- cellHeight += 10 + [curTopic.title getHeightWithFont: kProjectTopicCell_ContentFont constrainedToSize: CGSizeMake (kProjectTopicCell_ContentWidth , kProjectTopicCell_ContentHeightMax )] + 10 ;
127+ cellHeight += 12 + [curTopic.title getHeightWithFont: kProjectTopicCell_ContentFont constrainedToSize: CGSizeMake (kProjectTopicCell_ContentWidth , kProjectTopicCell_ContentHeightMax )] + 12 ;
128128 cellHeight += [ProjectTopicCellTagsView getHeightForTags: curTopic.labels];
129- cellHeight += 15 + 5 ;
129+ cellHeight += 15 + 12 ;
130130 }
131131 return cellHeight;
132132}
@@ -175,7 +175,7 @@ + (CGFloat)getHeightForTags:(NSArray *)tags{
175175 }
176176 }
177177 height = curY + kProjectTopicCellTagsView_Height_PerLine ;
178- height += 10 .0 ;// 与下面内容的间隔
178+ height += 7 .0 ;// 与下面内容的间隔
179179 }else {
180180 height = 0.0 ;
181181 }
0 commit comments