WorkFlowSelectView.m 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // WorkFlowSelectView.m
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/11/6.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "WorkFlowSelectView.h"
  9. #define Xrang [ UIScreen mainScreen ].bounds.size.width/375 //屏幕宽比例
  10. #define Yrang [ UIScreen mainScreen ].bounds.size.height/667//屏幕高比例
  11. @interface WorkFlowSelectView()<UICollectionViewDelegate, UICollectionViewDataSource> {
  12. NSArray *_imageNameArr;
  13. NSArray *_drawerNameArr;
  14. }
  15. @property (nonatomic, strong) TDTableView *tableView;
  16. @property (nonatomic, strong) UIView *backView;
  17. @end
  18. @implementation WorkFlowSelectView
  19. - (instancetype)initWithFrame:(CGRect)frame
  20. {
  21. self = [super initWithFrame:frame];
  22. if (self) {
  23. self.backgroundColor = [UIColor colorWithWhite:0 alpha:0.65];
  24. }
  25. return self;
  26. }
  27. - (UIView *)backView{
  28. if (!_backView) {
  29. _backView = [[UIView alloc]initWithFrame:CGRectMake((kGXScreenWidth -295*Xrang)/2 ,kGXScreenWidth ,295*Xrang,379*Yrang)];
  30. }
  31. return _backView;
  32. }
  33. @end