Skip to content

Commit a7b817f

Browse files
committed
删冗余代码
1 parent 8f2b6cd commit a7b817f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Coding_iOS/Views/Cell/CodingTipCell.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#import "CodingTipCell.h"
1313
@interface CodingTipCell ()
1414
@property (strong, nonatomic) UIImageView *iconView;
15-
//@property (strong, nonatomic) UIImageView *timeIconView;
1615
@property (strong, nonatomic) UILabel *timeLabel;
1716
@end
1817

@@ -46,11 +45,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
4645
_timeLabel.textAlignment = NSTextAlignmentRight;
4746
[self.contentView addSubview:_timeLabel];
4847
}
49-
// if (!_timeIconView) {
50-
// _timeIconView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 12, 12)];
51-
// _timeIconView.image = [UIImage imageNamed:@"time_clock_icon"];
52-
// [self.contentView addSubview:_timeIconView];
53-
// }
5448
}
5549
return self;
5650
}
@@ -74,13 +68,11 @@ - (void)layoutSubviews{
7468
NSString *timeStr = [_curTip.created_at stringTimeDisplay];
7569
[_timeLabel setLongString:timeStr withVariableWidth:200];
7670
[_timeLabel setCenter:CGPointMake(kScreen_Width -(CGRectGetWidth(_timeLabel.frame)/2 +kPaddingLeftWidth), curBottomY+ CGRectGetHeight(_timeLabel.frame)/2)];
77-
// [_timeIconView setCenter:CGPointMake(kScreen_Width -(CGRectGetWidth(_timeLabel.frame) +kPaddingLeftWidth +10), curBottomY+ CGRectGetHeight(_timeLabel.frame)/2)];
7871
for (HtmlMediaItem *item in _curTip.htmlMedia.mediaItems) {
7972
if (item.displayStr.length > 0) {
8073
[self.contentLabel addLinkToTransitInformation:[NSDictionary dictionaryWithObject:item forKey:@"value"] withRange:item.range];
8174
}
8275
}
83-
// curBottomY += 15+15;
8476
}
8577

8678
+ (CGFloat)cellHeightWithObj:(id)obj{

0 commit comments

Comments
 (0)