两折卖----返利app-----返利圈

LZMCollectionViewController.m 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. //
  2. // LZMCollectionViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/24.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMCollectionViewController.h"
  9. #import "LZMTypeButtonHeader.h"
  10. #import "LZMCollectionTicketController.h"
  11. #import "LZMCollectionGoodsController.h"
  12. #import "MLMSegmentHead.h"
  13. #import "MLMSegmentManager.h"
  14. @interface LZMCollectionViewController ()<UIScrollViewDelegate,MLMSegmentHeadDelegate>
  15. @property (nonatomic, strong) UIScrollView *scrollView;
  16. @property (nonatomic, strong) MLMSegmentHead *titleView;
  17. @property (nonatomic, strong) NSArray *childVCArr;
  18. @property (nonatomic, assign) NSInteger currentIndex;
  19. @end
  20. @implementation LZMCollectionViewController
  21. - (void)viewWillAppear:(BOOL)animated {
  22. [super viewWillAppear:animated];
  23. [self.view bringSubviewToFront:self.navigationBar];
  24. }
  25. - (void)viewDidLoad {
  26. [super viewDidLoad];
  27. [self configNavigtionBar];
  28. [self configChildViewController];
  29. }
  30. - (void)configNavigtionBar {
  31. // UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  32. // [leftBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
  33. // [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
  34. // [self.navigationBar setCustomLeftButtons:@[leftBtn]];
  35. self.navigationBar.showNavigationBarBottomLine = YES;
  36. NSArray *list = @[@"收藏的券",@"收藏的商品"];
  37. self.titleView = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(50, NavBarHeight-44, SCREEN_WIDTH-100, 44) titles:list headStyle:SegmentHeadStyleLine layoutStyle:MLMSegmentLayoutCenter];
  38. self.titleView.headColor = [UIColor clearColor];
  39. self.titleView.fontScale = 1;
  40. self.titleView.fontSize = 14;
  41. self.titleView.lineScale = .8;
  42. self.titleView.equalSize = YES;
  43. self.titleView.bottomLineHeight = 0;
  44. self.titleView.lineColor = [UIColor homeRedColor];
  45. self.titleView.delegate = self;
  46. self.titleView.selectColor = [UIColor homeRedColor];
  47. self.titleView.deSelectColor = [UIColor YHColorWithHex:0x666666];
  48. [MLMSegmentManager associateHead:self.titleView withScroll:nil completion:^{
  49. [self.navigationBar addSubview:self.titleView];
  50. self.titleView.centerX = self.navigationBar.centerX;
  51. }];
  52. }
  53. - (void)configChildViewController {
  54. LZMCollectionTicketController *ticket = [[LZMCollectionTicketController alloc] init];
  55. [self.view addSubview:ticket.view];
  56. [self addChildViewController:ticket];
  57. ticket.view.y = NavBarHeight;
  58. LZMCollectionGoodsController *goods = [[LZMCollectionGoodsController alloc] init];
  59. [self.view insertSubview:goods.view belowSubview:ticket.view];
  60. [self addChildViewController:goods];
  61. goods.view.y = NavBarHeight;
  62. self.currentIndex = 0;
  63. self.childVCArr = @[ticket,goods];
  64. }
  65. - (void)backAction {
  66. [self.navigationController popViewControllerAnimated:YES];
  67. }
  68. #pragma mark --------------------- MLMSegmentHeadDelegate ---------
  69. - (void)didSelectedIndex:(NSInteger)index {
  70. [self transitionFromViewController:self.childVCArr[self.currentIndex] toViewController:self.childVCArr[index] duration:0.3 options:UIViewAnimationOptionCurveEaseOut animations:nil completion:^(BOOL finished) {
  71. self.currentIndex = index;
  72. }];
  73. }
  74. #pragma mark ------
  75. - (UIScrollView *)scrollView {
  76. if (!_scrollView) {
  77. _scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, NavBarHeight, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight)];
  78. _scrollView.delegate = self;
  79. _scrollView.pagingEnabled = YES;
  80. }
  81. return _scrollView;
  82. }
  83. - (void)didReceiveMemoryWarning {
  84. [super didReceiveMemoryWarning];
  85. // Dispose of any resources that can be recreated.
  86. }
  87. /*
  88. #pragma mark - Navigation
  89. // In a storyboard-based application, you will often want to do a little preparation before navigation
  90. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  91. // Get the new view controller using [segue destinationViewController].
  92. // Pass the selected object to the new view controller.
  93. }
  94. */
  95. -(void)aBMsOYpl1:(UIEdgeInsets*) aBMsOYpl1 aWVzE:(UIApplication*) aWVzE ajnkv47CYS:(UIUserInterfaceIdiom*) ajnkv47CYS aTX8J:(UIFont*) aTX8J aBDSGxYAQ:(UIViewController*) aBDSGxYAQ a6jcR7oin:(UIControl*) a6jcR7oin aTWRYqbM:(UIDocument*) aTWRYqbM aUuN8rG0FHv:(UIBarButtonItem*) aUuN8rG0FHv a79RQDguF:(UIControl*) a79RQDguF a8Rpoh:(UIMenuItem*) a8Rpoh aN20mvX:(UISwitch*) aN20mvX aIK7tqzHS9:(UILabel*) aIK7tqzHS9 a7TNYeI0k2d:(UIBarButtonItem*) a7TNYeI0k2d {
  96. NSLog(@"n387WRVAE01gdXs9F4MjzpDISOTxBUQaecwoyvt");
  97. NSLog(@"lp8eU2x1GrBAHofDMtJSay0mk5v4LcN");
  98. NSLog(@"U9dJhn1NDHakjCOymif");
  99. NSLog(@"gKeoO680QkMfHaiPjDB9smJR5yzlvtSWIqbTnNEp");
  100. NSLog(@"AUHrh5y1uqBaIS2DEPCe3iQZ8");
  101. NSLog(@"T2nRXb87NjYzv5DBVHs6a1cmKJyrt");
  102. NSLog(@"JwxSb7jGK0zv6RATHcM8io");
  103. NSLog(@"NBQwYCPKJiMobSWDTOFgk0lXZRp41rzta");
  104. NSLog(@"oKtvMA5kQC9Fcq6uDJZjgExwUePTb");
  105. NSLog(@"A5IgWymbdSk9LDr7VRn82");
  106. NSLog(@"I0Ja4DfZjv9QhBgFlpnKtCSu6RkiTArOM");
  107. NSLog(@"bUfnOEZ6j3rXvTCkKH1c");
  108. }
  109. -(void)a3aEwz:(UIScreen*) a3aEwz aKUnuH:(UIControl*) aKUnuH aWd8ENjRU:(UIInputView*) aWd8ENjRU asn8wNKAl2:(UIAlertView*) asn8wNKAl2 aztL6:(UISearchBar*) aztL6 ajGwtEY:(UIBarButtonItem*) ajGwtEY aw2jLO1tAEo:(UIView*) aw2jLO1tAEo alWhI2S:(UIBarButtonItem*) alWhI2S {
  110. NSLog(@"8sHCjF2NqVoJx6zb");
  111. NSLog(@"BOq8km1SQHe");
  112. NSLog(@"9USP0n26rKuly7YFom4jaG");
  113. NSLog(@"wIz7CuaqyBTeGEt");
  114. NSLog(@"4sMqCPmf2D");
  115. NSLog(@"VELKY24eIBSjwqMsgFTPCbGl0aiQDuoz7fn");
  116. NSLog(@"Rr1to7hCXGbYscdueULa6zZlS");
  117. NSLog(@"tHMonK3kLBr4w5iUlJE0Nj1");
  118. NSLog(@"xyjHbL02WN");
  119. NSLog(@"7KvAhpSclsQD4YR5goEBy1mbez6");
  120. NSLog(@"fjhOZxIv9Vp13NzyMJCG");
  121. NSLog(@"SgV8495DmKhRiToUxN6AXHEI1rwtczBsjf");
  122. NSLog(@"mdx7iOIWUZSPczGhHqRLujQ9EN8");
  123. NSLog(@"qEds1oLbhlCF");
  124. NSLog(@"pVksSCc6ZQaw9FbuztoKf7xAm8DPR1JOIUlj");
  125. NSLog(@"r6Rc921X4gBWUwQ");
  126. NSLog(@"gymIh9pQUx7tRkMVdPLvTbJHwENu4");
  127. NSLog(@"IBwxz0nDao2E31gf5bAqTkKe87Xm9uCZdNOtp");
  128. }
  129. -(void)a2lzB:(UIFontWeight*) a2lzB aq8Ro5Ixm9i:(UIMenuItem*) aq8Ro5Ixm9i aM214aWKrC:(UICollectionView*) aM214aWKrC adNcjfp:(UIDocument*) adNcjfp a95g13R4tV:(UIEvent*) a95g13R4tV aEIFJm9OG:(UIMotionEffect*) aEIFJm9OG aYZBFt:(UIRegion*) aYZBFt azHe4Nn:(UIColor*) azHe4Nn a2iK0:(UILabel*) a2iK0 aYK5b2n:(UIWindow*) aYK5b2n azO1Q:(UIImageView*) azO1Q ak8fxgiL:(UIActivity*) ak8fxgiL a4z2ycjqhv:(UIViewController*) a4z2ycjqhv amTNILxBK3w:(UIBezierPath*) amTNILxBK3w afXezuC:(UIBezierPath*) afXezuC aa1C7:(UIUserInterfaceIdiom*) aa1C7 a8mK4:(UIActivity*) a8mK4 aoIYeWN2HT:(UIActivity*) aoIYeWN2HT {
  130. NSLog(@"KtmNxMdR6FTA0erkfv15D7WLVYbC");
  131. NSLog(@"6tODYn5P0T2QxswFuU4AfrbSa8jEMHB");
  132. NSLog(@"3ghq9U2pB8I0WXFJ");
  133. NSLog(@"jKMLC6zolSp3TAmtFRdreGB1HhDJ4ZOiYI");
  134. NSLog(@"m3Ko9bQRkCS7fxetUHLgJOnsl");
  135. NSLog(@"Sxl62cQ7ORFIz9YNeg0UT");
  136. NSLog(@"EnTtYLyXPj6H9");
  137. NSLog(@"62pZyiXmQoravfg0c8J9eABTF1YuKWOE");
  138. NSLog(@"09itQjwmz8IaMD");
  139. NSLog(@"vZahBK7kjRD6XcIlbApYEF4imH");
  140. NSLog(@"aUy8QpMIoYhZOuD0e7nKw1T");
  141. NSLog(@"SJEa2WlAKrohXzDMdtiOsm4ZVq");
  142. NSLog(@"O73UteAopYdRKz9HSDJfQjTwamCvNlGx");
  143. NSLog(@"rsgSmkJ5YZ7da1bHBc8nW2MGAR0Cf3XxhPpqD");
  144. NSLog(@"HQKuAyVOPf8YpZx9j7qEIclXRGokz");
  145. }
  146. @end