dkahgld

NoDataCell.m 841B

123456789101112131415161718192021222324252627282930
  1. //
  2. // NoDataCell.m
  3. // ZBProject
  4. //
  5. // Created by 学丽 on 2019/4/23.
  6. // Copyright © 2019 ZB. All rights reserved.
  7. //
  8. #import "NoDataCell.h"
  9. @implementation NoDataCell
  10. -(instancetype)initWithFrame:(CGRect)frame
  11. {
  12. self=[super initWithFrame:frame];
  13. if (self) {
  14. UIImageView *imgV =[[UIImageView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-50, 150, 100, 100)];
  15. imgV.image=[UIImage imageNamed:@"no_order"];
  16. [self addSubview:imgV];
  17. UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(0, imgV.bottom+10, SCREEN_WIDTH, 20)];
  18. label.text=@"还没有记录";
  19. label.font=[UIFont systemFontOfSize:14];
  20. label.textColor=[UIColor YHColorWithHex:0x333333];
  21. label.textAlignment=NSTextAlignmentCenter;
  22. [self addSubview:label];
  23. }
  24. return self;
  25. }
  26. @end