// // SelectCell.m // jiaPeiC // // Created by apple on 16/7/1. // Copyright © 2016年 JCZ. All rights reserved. // #import "SelectCell.h" @implementation SelectCell -(instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor whiteColor]; _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, frame.size.width - 20, frame.size.height - 60)];//frame.size.width - 20 _imageView.clipsToBounds = YES; _imageView.contentMode = UIViewContentModeScaleAspectFit; [self.contentView addSubview:_imageView]; _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, frame.size.height - 40, frame.size.width - 20, 20)]; [_timeLabel setText:@"" Font:Font16 TextColor:titleColor Alignment:NSTextAlignmentCenter]; [self.contentView addSubview:_timeLabel]; // _kemuLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, frame.size.height - 40, frame.size.width - 20, 20)]; // [_kemuLabel setText:@"" Font:Font16 TextColor:titleColor Alignment:NSTextAlignmentCenter]; // [self.contentView addSubview:_kemuLabel]; _styleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, frame.size.height - 20, frame.size.width - 20, 20)]; [_styleLabel setText:@"" Font:Font16 TextColor:titleColor Alignment:NSTextAlignmentCenter]; [self.contentView addSubview:_styleLabel]; _selectView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)]; _selectView.backgroundColor = lineColor; [_selectView borderCornorRadios:5]; [self.contentView addSubview:_selectView]; _selectView.hidden = YES; } return self; } @end