SelectCell.m 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // SelectCell.m
  3. // jiaPeiC
  4. //
  5. // Created by apple on 16/7/1.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "SelectCell.h"
  9. @implementation SelectCell
  10. -(instancetype)initWithFrame:(CGRect)frame
  11. {
  12. self = [super initWithFrame:frame];
  13. if (self) {
  14. self.backgroundColor = [UIColor whiteColor];
  15. _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, frame.size.width - 20, frame.size.height - 60)];//frame.size.width - 20
  16. _imageView.clipsToBounds = YES;
  17. _imageView.contentMode = UIViewContentModeScaleAspectFit;
  18. [self.contentView addSubview:_imageView];
  19. _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, frame.size.height - 40, frame.size.width - 20, 20)];
  20. [_timeLabel setText:@"" Font:Font16 TextColor:titleColor Alignment:NSTextAlignmentCenter];
  21. [self.contentView addSubview:_timeLabel];
  22. // _kemuLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, frame.size.height - 40, frame.size.width - 20, 20)];
  23. // [_kemuLabel setText:@"" Font:Font16 TextColor:titleColor Alignment:NSTextAlignmentCenter];
  24. // [self.contentView addSubview:_kemuLabel];
  25. _styleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, frame.size.height - 20, frame.size.width - 20, 20)];
  26. [_styleLabel setText:@"" Font:Font16 TextColor:titleColor Alignment:NSTextAlignmentCenter];
  27. [self.contentView addSubview:_styleLabel];
  28. _selectView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
  29. _selectView.backgroundColor = lineColor;
  30. [_selectView borderCornorRadios:5];
  31. [self.contentView addSubview:_selectView];
  32. _selectView.hidden = YES;
  33. }
  34. return self;
  35. }
  36. @end