RemindingView.m 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // RemindingView.m
  3. // BorrowMoney
  4. //
  5. // Created by JuYi on 2017/6/30.
  6. // Copyright © 2017年 JuYi. All rights reserved.
  7. // 没有数据 提示view
  8. #import "RemindingView.h"
  9. @implementation RemindingView
  10. - (instancetype)initWithFrame:(CGRect)frame {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. //
  14. self.backgroundColor = RGBValueColor(0xf7f7f7, 1.0);
  15. [self setUpUIForView];
  16. }
  17. return self;
  18. }
  19. - (void)setUpUIForView {
  20. UIImageView *remindView = [[UIImageView alloc] init];
  21. remindView.frame = CGRectMake(ScreenWidth / 2 - 47.5, 148 * AutoSizeSalseX, 95, 100);
  22. [self addSubview:remindView];
  23. self.remindView = remindView;
  24. UILabel *remindLabel = [[UILabel alloc] init];
  25. remindLabel.frame = CGRectMake(0, CGRectGetMaxY(remindView.frame) + 44, ScreenWidth, 15);
  26. remindLabel.textAlignment = NSTextAlignmentCenter;
  27. remindLabel.font = [UIFont systemFontOfSize:15.0];
  28. remindLabel.textColor = RGBValueColor(0xc5c5c7, 1.0);
  29. [self addSubview:remindLabel];
  30. self.remindLabel = remindLabel;
  31. }
  32. @end