-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSettingCell.m
More file actions
47 lines (40 loc) · 1.11 KB
/
SettingCell.m
File metadata and controls
47 lines (40 loc) · 1.11 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
42
43
44
45
46
47
//
// SettingCell.m
// DuDu
//
// Created by 教路浩 on 15/12/2.
// Copyright © 2015年 i-chou. All rights reserved.
//
#import "SettingCell.h"
@implementation SettingCell
{
UILabel *_conditionLabel;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
[self createSubViews];
}
return self;
}
- (void)createSubViews
{
_conditionLabel = [UILabel labelWithFrame:ccr(0, 0, SCREEN_WIDTH, 60)
color:COLORRGB(0x000000)
font:HSFONT(15)
text:@""
alignment:NSTextAlignmentCenter
numberOfLines:1];
[self.contentView addSubview:_conditionLabel];
}
- (void)layoutSubviews
{
[super layoutSubviews];
_conditionLabel.text = self.condition;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
}
@end