applyCell.m 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // applyCell.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/1/22.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "applyCell.h"
  9. @implementation applyCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  15. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  16. if (self)
  17. {
  18. _titLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 90, self.contentView.height)];
  19. _titLabel.textAlignment = NSTextAlignmentLeft;
  20. _titLabel.font = [UIFont scaleSize:Font14];
  21. _titLabel.textColor = KContentTextColor;
  22. [self.contentView addSubview:_titLabel];
  23. _detailField = [[UITextField alloc] initWithFrame:CGRectMake(120, 0, kSize.width - 130, self.contentView.height)];
  24. _detailField.textAlignment = NSTextAlignmentRight;
  25. _detailField.returnKeyType = UIReturnKeyDone;
  26. _detailField.font = [UIFont scaleSize:Font14];
  27. _rightImg = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidth - self.contentView.height - 10, 4, self.contentView.height - 8, self.contentView.height - 8)];
  28. _rightImg.layer.cornerRadius = (self.contentView.height - 8) / 2.0;
  29. _rightImg.clipsToBounds = NO;
  30. _rightImg.image = [UIImage imageNamed:@"NOImg"];
  31. [self.contentView addSubview:_detailField];
  32. }
  33. return self;
  34. }
  35. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  36. [super setSelected:selected animated:animated];
  37. // Configure the view for the selected state
  38. }
  39. @end