123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // DetailMarkCell.m
- // jiaPei
- //
- // Created by apple on 16/1/13.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "DetailMarkCell.h"
- @implementation DetailMarkCell
- -(instancetype)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self)
- {
- self.backgroundColor = backGroundColor;
-
- CGFloat width = self.frame.size.width;
- CGFloat hight = self.frame.size.height/2.0;
-
- _imgView = [[UIImageView alloc] initWithFrame:CGRectMake((width - hight + 30)/2, 30, hight - 30, hight - 30)];
- [self addSubview:_imgView];
-
- _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, hight + 20, width, 30)];
- [_titleLabel setTextAlignment:NSTextAlignmentCenter];
- [_titleLabel setFont: [UIFont scaleSize:20]];
- [_titleLabel setNumberOfLines:0];
- [self addSubview:_titleLabel];
-
- _detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, hight + 50, width - 20, hight - 50)];
- [_detailLabel setFont:[UIFont scaleSize:14]];
- [_detailLabel setNumberOfLines:0];
- [self addSubview:_detailLabel];
-
-
- }
- return self;
- }
- @end
|