一折买app------返利---------返利宝

YZMAMonthMainViewController.m 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. //
  2. // YZMAMonthMainViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/28.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAMonthMainViewController.h"
  9. #import "MLMSegmentHead.h"
  10. #import "MLMSegmentManager.h"
  11. #import "YZMAChildMonthViewController.h"
  12. #import "YZMAMonthShowTipView.h"//
  13. @interface YZMAMonthMainViewController ()
  14. @property (nonatomic, strong) MLMSegmentHead *titleView;
  15. @property (nonatomic, strong) MLMSegmentScroll *segScroll;
  16. @property (nonatomic, strong) NSMutableArray *vcList;
  17. @property (nonatomic, strong) YZMAMonthShowTipView *monthShowTipView;
  18. @end
  19. @implementation YZMAMonthMainViewController
  20. - (void)viewDidLoad {
  21. [super viewDidLoad];
  22. [self configNavigationBar];
  23. [self creatChildViewController];
  24. }
  25. -(void)viewWillAppear:(BOOL)animated{
  26. [super viewWillAppear:animated];
  27. [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
  28. }
  29. - (void)configNavigationBar {
  30. self.view.backgroundColor = [UIColor whiteColor];
  31. if (self.type==0) {
  32. [self.navigationBar setNavTitle:@"预估明细"];
  33. }else{
  34. [self.navigationBar setNavTitle:@"结算明细"];
  35. }
  36. self.monthShowTipView.type=self.type;
  37. self.navigationBar.backgroundColor = [UIColor changeColor];
  38. self.navigationBar.navTitleLabel.textColor = [UIColor whiteColor];
  39. UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  40. [leftBtn setImage:[UIImage imageNamed:@"back_white"] forState:UIControlStateNormal];
  41. [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
  42. [self.navigationBar setCustomLeftButtons:@[leftBtn]];
  43. UIButton *rightBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  44. [rightBtn setImage:[UIImage imageNamed:@"helpmonth"] forState:UIControlStateNormal];
  45. [rightBtn addTarget:self action:@selector(rightAction) forControlEvents:UIControlEventTouchUpInside];
  46. [self.navigationBar setCustomRightButtons:@[rightBtn]];
  47. [[UIApplication sharedApplication].keyWindow addSubview:self.monthShowTipView];
  48. }
  49. - (void)backAction {
  50. [self.navigationController popViewControllerAnimated:YES];
  51. }
  52. -(void)rightAction{
  53. self.monthShowTipView.hidden=NO;
  54. }
  55. - (void)creatChildViewController {
  56. NSArray *titleArr = @[@"本月",@"上月"];
  57. for (int i = 0; i < titleArr.count; i++) {
  58. YZMAChildMonthViewController *child = [[YZMAChildMonthViewController alloc] init];
  59. child.isThisMonth = (i==0?1:0);
  60. child.type = self.type;
  61. [self.vcList addObject:child];
  62. }
  63. self.segScroll = [[MLMSegmentScroll alloc] initWithFrame:CGRectMake(0, NavBarHeight+40, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight-40) vcOrViews:self.vcList];
  64. self.titleView = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(0, NavBarHeight, SCREEN_WIDTH, 40) titles:titleArr headStyle:SegmentHeadStyleDefault layoutStyle:MLMSegmentLayoutDefault];
  65. self.titleView.headColor = [UIColor whiteColor];
  66. self.titleView.bottomLineHeight = 1;
  67. self.titleView.bottomLineColor = [UIColor yhGrayColor];
  68. self.titleView.fontScale = 1;
  69. self.titleView.fontSize = 14;
  70. self.titleView.equalSize = YES;
  71. self.titleView.showIndex = (self.isThisMonth==0?1:0);
  72. self.titleView.selectColor = [UIColor YHColorWithHex:0xff442a];
  73. self.titleView.deSelectColor = [UIColor YHColorWithHex:0x666666];
  74. [MLMSegmentManager associateHead:self.titleView withScroll:self.segScroll completion:^{
  75. [self.view addSubview:self.titleView];
  76. [self.view addSubview:self.segScroll];
  77. }];
  78. }
  79. #pragma mark ---- layzer
  80. - (NSMutableArray *)vcList {
  81. if (!_vcList) {
  82. _vcList = [NSMutableArray array];
  83. }
  84. return _vcList;
  85. }
  86. -(YZMAMonthShowTipView *)monthShowTipView{
  87. if (!_monthShowTipView) {
  88. _monthShowTipView=[[[NSBundle mainBundle] loadNibNamed:@"YZMAMonthShowTipView" owner:self options:nil] lastObject];
  89. _monthShowTipView.frame=CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
  90. _monthShowTipView.hidden=YES;
  91. }
  92. return _monthShowTipView;
  93. }
  94. -(void)aP2t39Gc:(UIEdgeInsets*) aP2t39Gc aPk6QOeXTb:(UIView*) aPk6QOeXTb aaZTJbhk1E:(UISearchBar*) aaZTJbhk1E apP4RwF:(UIControl*) apP4RwF aWr9mPx:(UIInputView*) aWr9mPx ax1XI:(UIApplication*) ax1XI abWGwX:(UIMenuItem*) abWGwX aRvtG2n:(UICollectionView*) aRvtG2n azoPjqX:(UIFontWeight*) azoPjqX aWz1LsxAb:(UIView*) aWz1LsxAb aKuez1r:(UIMotionEffect*) aKuez1r aTxLCZWjOF:(UIMotionEffect*) aTxLCZWjOF a1g4TAZ:(UIKeyCommand*) a1g4TAZ {
  95. NSLog(@"b2R895uZGDYS0W");
  96. NSLog(@"r6qLJU9GTjReMSXDvKd4E5PbCAlkgZWimBfO3Qx");
  97. NSLog(@"AYtKoHkJy5LUsCOZGRh2I");
  98. NSLog(@"iFKc1XH6L8h7qj5RnPxQCESvsW9");
  99. NSLog(@"8zDBmeYJiW5MU7XkVSx");
  100. NSLog(@"CX7M9gvcj0aUJLkIlmWeYAhGVK3TsROzDp6S");
  101. NSLog(@"Hht8umA7YfFjI");
  102. NSLog(@"AYCmWSiR6Tn");
  103. NSLog(@"z9toribmU3J7fQF");
  104. NSLog(@"8TsprXB02VJnGa5Wg1yQUYAFdkf");
  105. NSLog(@"2TXS3ibgmZq5oP8");
  106. NSLog(@"Z1UF6yX92Yj8lhzJTw3xDaRudqSpWPmKBv");
  107. NSLog(@"cNAMYrQ6yVxG1Ep");
  108. }
  109. -(void)avkdX6l:(UIApplication*) avkdX6l aqLhT:(UIEvent*) aqLhT aBuenoMg4r9:(UISearchBar*) aBuenoMg4r9 ap5u7gO8:(UIEvent*) ap5u7gO8 a784ArEbCuL:(UIBarButtonItem*) a784ArEbCuL aZlHT:(UICollectionView*) aZlHT aMcvTOwiVK:(UIImageView*) aMcvTOwiVK aY4ymDM5w2H:(UISwitch*) aY4ymDM5w2H avWmi3:(UISearchBar*) avWmi3 aT1XznZuk5O:(UIControlEvents*) aT1XznZuk5O aVkrub6:(UIEdgeInsets*) aVkrub6 a4ePfD:(UIView*) a4ePfD aIFCXYd:(UIMenuItem*) aIFCXYd alSzeyN:(UIBarButtonItem*) alSzeyN aF6TeKXJ:(UIViewController*) aF6TeKXJ a23abB46yA:(UIViewController*) a23abB46yA auf2y:(UIDocument*) auf2y aNlrJci8O:(UISearchBar*) aNlrJci8O arTMl:(UIBarButtonItem*) arTMl afHhZP4ydnv:(UIDocument*) afHhZP4ydnv {
  110. NSLog(@"kFuJ9ZBDfXtwyUP");
  111. NSLog(@"gBQXviSx3ZmTl");
  112. NSLog(@"opbFtPgQR3NfMCKnGLz89Ujh2");
  113. NSLog(@"QUl7d6VSarEz1XsPqvWL5MD4c0jiYb2ChfB");
  114. NSLog(@"PjX74yT1DtAfnZ");
  115. NSLog(@"sc4ILtBvrAKPumbDy");
  116. NSLog(@"IHAz7qFNB50rx1hmsWyCvDwMVjkX8T");
  117. NSLog(@"np9FQCkfvq01dh5a");
  118. NSLog(@"tZXT7bWDyLM4ViFJB96q1vlYcu");
  119. NSLog(@"Bc5Ly8ZR3l");
  120. }
  121. -(void)aj48gx:(UIButton*) aj48gx aaJnA:(UIDocument*) aaJnA afCbAM6ac:(UIBezierPath*) afCbAM6ac aGpwCareK5:(UIControlEvents*) aGpwCareK5 aH1Vy7:(UIActivity*) aH1Vy7 afav4xRjGO:(UIBarButtonItem*) afav4xRjGO {
  122. NSLog(@"Zs4InUAliuwGkTW");
  123. NSLog(@"7AFtRB5j9sEpTOfZevgDCqoWky");
  124. NSLog(@"bN6JUfMkDEaR");
  125. NSLog(@"TxbfXqdtiEguYycA6KRaDWehzSw");
  126. NSLog(@"ZTswpx95oBDyXdHM18qKW0aGIfkgrVmElhF3ACO");
  127. NSLog(@"wKk6dHWO82TvFmu5UQC3V7");
  128. NSLog(@"GFLJeNyvx1qhkUsf6H8RBrV3Zo7T");
  129. NSLog(@"eUrZ8YAliMkybmQfca");
  130. NSLog(@"nMtuhxRJkEiHNXdqPYsoSpzm09LDye647VZvaFQ3");
  131. NSLog(@"TLv6azOC93gfr1HAonVXM0ythwxQdR");
  132. NSLog(@"LOH9c6SsfkWNGIBg");
  133. NSLog(@"Wk8iUjOCXER9mJBZg0Ad1lDMqoI4n7");
  134. NSLog(@"p138Gr2b0qUIzEyH5LcYDP");
  135. NSLog(@"LHsQcJ587Gm203nA");
  136. NSLog(@"2d7Yatqp86R9fUi");
  137. NSLog(@"a1QL6jpRi3SVJqGunbP0gWFhxYrDZ7lXH");
  138. NSLog(@"7nryNCkvpK04IMVPAhwfWJqjS526zOi");
  139. }
  140. -(void)a8eX9jL:(UIKeyCommand*) a8eX9jL aaOoRuH:(UIFontWeight*) aaOoRuH aTxSbH1n25:(UIAlertView*) aTxSbH1n25 aAOth6Fd1:(UIRegion*) aAOth6Fd1 a1GvwoVB8q:(UIViewController*) a1GvwoVB8q a0qQbsUpW86:(UIBezierPath*) a0qQbsUpW86 amfcCdySb:(UIActivity*) amfcCdySb aSDVW7OmAT:(UIViewController*) aSDVW7OmAT ax82mZ:(UIAlertView*) ax82mZ axgwuZCMv9:(UIEvent*) axgwuZCMv9 arI8c6s:(UILabel*) arI8c6s a4PpmibT7:(UIColor*) a4PpmibT7 aIXWTtYuyPA:(UIDocument*) aIXWTtYuyPA aKPFGVxlIU:(UIBezierPath*) aKPFGVxlIU axRCnAgK8:(UIBarButtonItem*) axRCnAgK8 aPXJwE:(UIMotionEffect*) aPXJwE azQ93Wev6hF:(UIRegion*) azQ93Wev6hF aZkhd:(UIDocument*) aZkhd {
  141. NSLog(@"AQKrOjvh8P0m2q");
  142. NSLog(@"4QCZ16XApjUPMH9wGexhOWfRKJb");
  143. NSLog(@"I2VxfM8Sz5nYPCgNba6ec9FrHB3tJiLsqjm");
  144. NSLog(@"hHNvMOZJojpaCL5UVIXdlu27QRBqwYgSkymKxAzr");
  145. NSLog(@"OZ1M542EGSeICrf8LR3BtuojgadPzm");
  146. NSLog(@"wDOa6Gntrg4b19xofsmZcMlhN");
  147. NSLog(@"OAar5IfydNhb1L3RsHoc7EKQYW96BpM4vZnujtgl");
  148. NSLog(@"3eEQmIyJMS6RD5KWvArXLF");
  149. NSLog(@"xnA6JzM1OEZsTUmcNo0LK7F2DryjhRlWp5I");
  150. NSLog(@"IzEiD5TXlPu");
  151. NSLog(@"nlyV8HMArD1ehEBNC0Qxcf");
  152. NSLog(@"KRgVJUWCrFdHmNGnOQBTv3MzZu");
  153. NSLog(@"zHYGfoUeg7ZMiJ");
  154. NSLog(@"CEBxwSq1HpesOMaUVWc5fbFPDiAQKyo2893tmR");
  155. NSLog(@"GBfVKMp8xoCFU6QDzbvSEea2A3hkgtYsmZ");
  156. NSLog(@"uRXi5hEBdPILKc9F7CWrJm03eq");
  157. NSLog(@"f1CEbJuk9n5cD0yUFVPLTpexidm87BK");
  158. NSLog(@"JAOEuvPomjnxgpFwSz9UQqHR6TyGlDVMkf");
  159. NSLog(@"ex9GmaIdThJtVbFwv1n2XC80KEzoRiu");
  160. }
  161. @end