12345678910111213141516171819202122232425262728293031323334 |
- //
- // LightingCell.m
- // jiaPei
- //
- // Created by apple on 16/1/18.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "LightingCell.h"
- @implementation LightingCell
- -(instancetype)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self)
- {
- CGFloat width = (kSize.width - 8)/4.0 - 30;
-
- _imgView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, width, width)];
- [self.contentView addSubview:_imgView];
-
- _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 10 + width, (kSize.width - 8)/4.0 - 10, 20)];
- _titleLabel.textAlignment = NSTextAlignmentCenter;
- [_titleLabel setFont:[UIFont scaleSize:14]];
- [self.contentView addSubview:_titleLabel];
-
- }
- return self;
- }
- @end
|