forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskCommentBlankCell.m
More file actions
executable file
·34 lines (29 loc) · 1.04 KB
/
TaskCommentBlankCell.m
File metadata and controls
executable file
·34 lines (29 loc) · 1.04 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
//
// TaskCommentBlankCell.m
// Coding_iOS
//
// Created by 王 原闯 on 14/10/28.
// Copyright (c) 2014年 Coding. All rights reserved.
//
#import "TaskCommentBlankCell.h"
@implementation TaskCommentBlankCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
self.selectionStyle = UITableViewCellSelectionStyleNone;
if (!_blankStrLabel) {
_blankStrLabel = [[UILabel alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, ([self.class cellHeight]-30)/2, kScreen_Width - 2*kPaddingLeftWidth, 30)];
_blankStrLabel.font = [UIFont boldSystemFontOfSize:15];
_blankStrLabel.textColor = [UIColor colorWithHexString:@"0x999999"];
_blankStrLabel.textAlignment = NSTextAlignmentCenter;
[self.contentView addSubview:_blankStrLabel];
}
}
return self;
}
+ (CGFloat)cellHeight{
return 100.0;
}
@end