forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskCommentTopCell.m
More file actions
executable file
·41 lines (36 loc) · 1.36 KB
/
Copy pathTaskCommentTopCell.m
File metadata and controls
executable file
·41 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// TaskCommentTopCell.m
// Coding_iOS
//
// Created by 王 原闯 on 14/10/28.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import "TaskCommentTopCell.h"
@interface TaskCommentTopCell ()
@property (strong, nonatomic) UIImageView *bottomLineView;
@end
@implementation TaskCommentTopCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
self.selectionStyle = UITableViewCellSelectionStyleNone;
if (!_bottomLineView) {
_bottomLineView = [[UIImageView alloc] initWithFrame:CGRectMake(20, [self.class cellHeight]-6, kScreen_Width-20, 10)];
_bottomLineView.image = [[UIImage imageNamed:@"comment_count_top_line"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 38, 0, 2)];
[self.contentView addSubview:_bottomLineView];
}
if (!_commentNumStrLabel) {
_commentNumStrLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 5, 250, 20)];
_commentNumStrLabel.font = [UIFont systemFontOfSize:13];
_commentNumStrLabel.textColor = [UIColor colorWithHexString:@"0x666666"];
[self.contentView addSubview:_commentNumStrLabel];
}
}
return self;
}
+ (CGFloat)cellHeight{
return 30;
}
@end