dkahgld

ZBIncomeStatisticsViewController.m 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // ZBIncomeStatisticsViewController.m
  3. // ZBProject
  4. //
  5. // Created by 学丽 on 2019/4/3.
  6. // Copyright © 2019 ZB. All rights reserved.
  7. //
  8. #import "ZBIncomeStatisticsViewController.h"
  9. @interface ZBIncomeStatisticsViewController ()
  10. @property(nonatomic,strong)NSMutableArray *listArray;
  11. @end
  12. @implementation ZBIncomeStatisticsViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. [self initNavs];
  16. }
  17. -(void)initNavs
  18. {
  19. self.view.backgroundColor=[UIColor lineColor];
  20. self.navBar.navTitleLabel.text=@"收益统计";
  21. UIButton *returnBtn =[[UIButton alloc]initWithFrame:CGRectMake(0, 0, 30, 20)];
  22. [returnBtn addTarget:self action:@selector(returnClickBtn) forControlEvents:UIControlEventTouchUpInside];
  23. [returnBtn setImage:[UIImage imageNamed:@"return_white"] forState:UIControlStateNormal];
  24. returnBtn.adjustsImageWhenHighlighted = NO;
  25. [self.navBar setCustomLeftButtons:@[returnBtn]];
  26. UIButton *rightBtn =[[UIButton alloc]initWithFrame:CGRectMake(0, 0, 20, 20)];
  27. [rightBtn setTitle:@"近7天" forState:UIControlStateNormal];
  28. [rightBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  29. [rightBtn setImage:[UIImage imageNamed:@"down"] forState:UIControlStateNormal];
  30. rightBtn.titleLabel.font=[UIFont systemFontOfSize:13];
  31. [rightBtn addTarget:self action:@selector(rightchangeClick) forControlEvents:UIControlEventTouchUpInside];
  32. [self.navBar setCustomRightButtons:@[rightBtn]];
  33. }
  34. -(void)returnClickBtn
  35. {
  36. [self.navigationController popViewControllerAnimated:YES];
  37. }
  38. -(NSMutableArray *)listArray
  39. {
  40. if (!_listArray) {
  41. _listArray =[NSMutableArray array];
  42. }
  43. return _listArray;
  44. }
  45. #pragma mark-切换显示
  46. -(void)rightchangeClick
  47. {
  48. }
  49. @end