forked from coding/Coding-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResetLabelCell.m
More file actions
41 lines (35 loc) · 1.07 KB
/
ResetLabelCell.m
File metadata and controls
41 lines (35 loc) · 1.07 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
//
// ResetLabelCell.m
// Coding_iOS
//
// Created by zwm on 15/4/17.
// Copyright (c) 2015年 Coding. All rights reserved.
//
#import "ResetLabelCell.h"
@implementation ResetLabelCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
self.accessoryType = UITableViewCellAccessoryNone;
self.backgroundColor = [UIColor clearColor];
// Initialization code
if (!_labelField) {
_labelField = [[UITextField alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, 0, (kScreen_Width - kPaddingLeftWidth * 2), 44)];
_labelField.textColor = [UIColor colorWithHexString:@"0x222222"];
_labelField.font = [UIFont systemFontOfSize:16];
_labelField.clearButtonMode = UITextFieldViewModeWhileEditing;
[self.contentView addSubview:_labelField];
}
}
return self;
}
- (void)layoutSubviews
{
[super layoutSubviews];
}
+ (CGFloat)cellHeight
{
return 44.0;
}
@end