MyInfoCell.m 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // MyInfoCell.m
  3. // smartRhino
  4. //
  5. // Created by armin on 2019/11/1.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "MyInfoCell.h"
  9. @implementation MyInfoCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. + (CGFloat)configCell0Height{
  19. return 42.5;
  20. }
  21. + (CGFloat)configCell1Height{
  22. return 42.5;
  23. }
  24. + (MyInfoCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  25. static NSString *cellIdentifer = @"MyInfoCell0";
  26. MyInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  27. if (cell == nil || !cell) {
  28. cell = [[[NSBundle mainBundle] loadNibNamed:@"MyInfoCell" owner:nil options:nil] objectAtIndex:0];
  29. }
  30. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  31. cell.cell0UserImgView.hidden = YES;
  32. cell.cell0ErWeiMaImgView.hidden = YES;
  33. cell.cell0LineView.hidden = NO;
  34. cell.cell0ValueLabel.text = @"";
  35. cell.cell0UserImgView.layer.masksToBounds = YES;
  36. cell.cell0UserImgView.layer.cornerRadius = 23/2.0;
  37. return cell;
  38. }
  39. + (MyInfoCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  40. static NSString *cellIdentifer = @"MyInfoCell1";
  41. MyInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  42. if (cell == nil || !cell) {
  43. cell = [[[NSBundle mainBundle] loadNibNamed:@"MyInfoCell" owner:nil options:nil] objectAtIndex:1];
  44. }
  45. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  46. cell.cell1LineView.hidden = NO;
  47. cell.cell1ValueLabel.text = @"";
  48. return cell;
  49. }
  50. @end