财神随手记账

SREmptyDataView.m 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // SREmptyDataView.m
  3. // SREmptyDataViewDemo
  4. //
  5. // Created by https://github.com/guowilling on 2018/1/11.
  6. // Copyright © 2018年 SR. All rights reserved.
  7. //
  8. #import "SREmptyDataView.h"
  9. #import "UIView+SRFrame.h"
  10. #define kSubviewMargin 20.f
  11. #define kTitleFont [UIFont systemFontOfSize:16.f]
  12. #define kDetailFont [UIFont systemFontOfSize:14.f]
  13. #define kActionBtnTitleFont [UIFont systemFontOfSize:14.f]
  14. #define kActionBtnHeight 40.f
  15. #define kActionBtnHorizontalEdge 30.f
  16. #define kBlackColor [UIColor colorWithRed:0.3f green:0.3f blue:0.3f alpha:1.f]
  17. #define kGrayColor [UIColor colorWithRed:0.5f green:0.5f blue:0.5f alpha:1.f]
  18. @interface SREmptyDataView ()
  19. @property (nonatomic, strong) UIImageView *promptImageView;
  20. @property (nonatomic, strong) UILabel *titleLabel;
  21. @property (nonatomic, strong) UILabel *detailLabel;
  22. @property (nonatomic, strong) UIButton *actionButton;
  23. @property (nonatomic, assign) CGFloat contentMaxWidth;
  24. @property (nonatomic, assign) CGFloat contentW;
  25. @property (nonatomic, assign) CGFloat contentH;
  26. @end
  27. @implementation SREmptyDataView
  28. #pragma mark - Lazy Load
  29. @end