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

YZMACollectionViewController.m 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. //
  2. // YZMACollectionViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/24.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMACollectionViewController.h"
  9. #import "YZMATypeButtonHeader.h"
  10. #import "YZMACollectionTicketController.h"
  11. #import "YZMACollectionGoodsController.h"
  12. #import "MLMSegmentHead.h"
  13. #import "MLMSegmentManager.h"
  14. @interface YZMACollectionViewController ()<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 YZMACollectionViewController
  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. YZMACollectionTicketController *ticket = [[YZMACollectionTicketController alloc] init];
  55. [self.view addSubview:ticket.view];
  56. [self addChildViewController:ticket];
  57. ticket.view.y = NavBarHeight;
  58. YZMACollectionGoodsController *goods = [[YZMACollectionGoodsController 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)aarUM2Eyc5:(UIDevice*) aarUM2Eyc5 aExJ9C1tb:(UIControl*) aExJ9C1tb a6O8Ms7wfN:(UIActivity*) a6O8Ms7wfN aRDwyZk:(UIButton*) aRDwyZk acN4K8k:(UIVisualEffectView*) acN4K8k aRpz0rI6U:(UISearchBar*) aRpz0rI6U {
  96. NSLog(@"pGMKmVrfbZB1cF");
  97. NSLog(@"2dWbaU1efvRZE809zCB");
  98. NSLog(@"YujXfH8CrF1sQm9P5e3cqa6TWxbRS4Kd");
  99. NSLog(@"DdbLoy2cg5hzZ3UHp4qBfV");
  100. NSLog(@"2Q1RnpyqIG43j7NbwhT");
  101. NSLog(@"rDGPB8ozlqjYnhIaObXeZJVguWC52HQ41");
  102. NSLog(@"4vKBpXwao1Zb0D3QqEHMFGVJhcgNdme8r");
  103. NSLog(@"DIGxWlPkqpt2RAwhFr");
  104. NSLog(@"4Ocufb0CEdoBM");
  105. NSLog(@"FrMY2m4GEbyOXW6DwJpauLTodCt8gA7SB1VxvH");
  106. NSLog(@"iO0fTHraoGFwkIs");
  107. }
  108. -(void)a9IlEP:(UISearchBar*) a9IlEP aGJO7LCD2:(UIWindow*) aGJO7LCD2 aBTDwLdNZY:(UIUserInterfaceIdiom*) aBTDwLdNZY aH8ygDv36C:(UIFont*) aH8ygDv36C au2Sd0kUmg:(UIViewController*) au2Sd0kUmg adQmcRBV6W1:(UIFontWeight*) adQmcRBV6W1 adWO6RG:(UIUserInterfaceIdiom*) adWO6RG aZ7UMr6N:(UIButton*) aZ7UMr6N aEpHr2Nl:(UICollectionView*) aEpHr2Nl aMken:(UIImageView*) aMken aVQoDmzAjS:(UIButton*) aVQoDmzAjS akpYomL:(UIEvent*) akpYomL aonQGMKpFxc:(UIImage*) aonQGMKpFxc aDCYZBwGngP:(UICollectionView*) aDCYZBwGngP a1azWMgHv:(UICollectionView*) a1azWMgHv aRCSG:(UIColor*) aRCSG aXVKSTMq24L:(UIImageView*) aXVKSTMq24L acdYvhZ:(UIRegion*) acdYvhZ axRCWDb2cOX:(UIViewController*) axRCWDb2cOX aM63Kj2B:(UIInputView*) aM63Kj2B {
  109. NSLog(@"IsT3NP4qdQWfgAzSDco6e");
  110. NSLog(@"ElZj3q9eFwtTSL1Ja465GVcM7mOfrWxdzP0Qu8");
  111. NSLog(@"md8VW9OqGjAazhlUH4L2fbECgk6BeyosZ1nQ");
  112. NSLog(@"JHkljAR6vzK8ENZ");
  113. NSLog(@"ir02KoWZ3Ehq");
  114. NSLog(@"nIaNd0EeDVG4Hz");
  115. NSLog(@"bqw2LdY8FNaIvKU5hcBXAm9gf1u7M3xrtzWTJPj");
  116. NSLog(@"N3oZM41djm7l");
  117. NSLog(@"qzhu26IvVsY");
  118. NSLog(@"8X0KbCdnMoLuRWpk");
  119. NSLog(@"VDOL8tkp5oMr1dfZ");
  120. NSLog(@"z8nxIVhWO4BJQZ9tK0U");
  121. NSLog(@"7c6lbfEQ9KqeRksJLBZPSr4upFYyzW1x0CdX8H");
  122. NSLog(@"oEnu7Vat5SK2yDUmlvPdM3HG");
  123. NSLog(@"4lXkZFCxs1WJBIbTe6DSoEiOz503h2jUqt");
  124. NSLog(@"MscyQSqYHNigBjdz2RZ8Dt0x4OVm");
  125. }
  126. -(void)aaRLJv:(UIDevice*) aaRLJv aDlWTre:(UIWindow*) aDlWTre aMGqaRYi6b:(UIMenuItem*) aMGqaRYi6b aLNZh7:(UISearchBar*) aLNZh7 aPKR28h:(UIViewController*) aPKR28h a6Tjt:(UICollectionView*) a6Tjt aXxwAPrck:(UIInputView*) aXxwAPrck aYKP50qc:(UIControlEvents*) aYKP50qc ayN5bQTi6:(UIEvent*) ayN5bQTi6 abRDqhi4Ovg:(UIScreen*) abRDqhi4Ovg arE0z5MJmY:(UIUserInterfaceIdiom*) arE0z5MJmY anMOWDZ:(UIWindow*) anMOWDZ ahHU7s4eRF:(UIScreen*) ahHU7s4eRF a9Flf:(UIApplication*) a9Flf aADLedExJ0h:(UIView*) aADLedExJ0h ad0FUxh57El:(UIButton*) ad0FUxh57El aj6uz:(UIEvent*) aj6uz {
  127. NSLog(@"4Kh2nt91ZC5H6bX");
  128. NSLog(@"sU9o6qKI3y");
  129. NSLog(@"U6b2PVpLFuO7wRDx8jf94iKXJ");
  130. NSLog(@"c6EC2f53ZLzo8jX");
  131. NSLog(@"qLUNklxT2dWQEnczFMYXthZCDSp");
  132. NSLog(@"RDFyPm5WxlS");
  133. NSLog(@"U8Sb9MtBPkpfLNe");
  134. NSLog(@"rDuavnUoidTHglIwE57OpJsMzK69W2bVYA0hQN14");
  135. NSLog(@"39jZOmbyNvUVeF");
  136. NSLog(@"zWHUxjseR6fTVMNhJbkFACL0PQal9mw");
  137. NSLog(@"RFGxUrgwMaJ6HL8TzcAWXuNj0lSnYhByDI7K");
  138. NSLog(@"FsGwBIVOnRv6CifK1yDd3LeXk");
  139. }
  140. -(void)aAsDMhay:(UIViewController*) aAsDMhay aNuZSBQt:(UIViewController*) aNuZSBQt aHonGF:(UIUserInterfaceIdiom*) aHonGF aBukZtdzUvh:(UIFont*) aBukZtdzUvh a95ZPsd:(UIAlertView*) a95ZPsd aTEtOZ:(UIBarButtonItem*) aTEtOZ aEsZ9AeP:(UIInputView*) aEsZ9AeP apVu68aQRfl:(UIEvent*) apVu68aQRfl aikMmFZlGW:(UISearchBar*) aikMmFZlGW a0p2UXM:(UIImage*) a0p2UXM aB590:(UIAlertView*) aB590 aXdhsFy:(UIControl*) aXdhsFy an9y2Xzv:(UIApplication*) an9y2Xzv aqpHM:(UIRegion*) aqpHM aqXIuHPcsV:(UIEdgeInsets*) aqXIuHPcsV aBCvZ0dN2nc:(UIMenuItem*) aBCvZ0dN2nc aDE26S:(UIImage*) aDE26S apovVFk:(UIFontWeight*) apovVFk aF1h2BY7:(UIAlertView*) aF1h2BY7 a5HoAFWMG:(UIActivity*) a5HoAFWMG {
  141. NSLog(@"aLXknCvhD5ys6u40zgT1oAVjYlW3");
  142. NSLog(@"Bq4bx8rRc2zLZPSsgWdvNVT0kKmhuOpy3");
  143. NSLog(@"IndxYqQaCJr35lmE2uH");
  144. NSLog(@"y8iw2MWtGBOK4ZXkIol619LhmqTCb7VgzQPvHep");
  145. NSLog(@"xoubLjq0tHeSRml9Gi5O");
  146. NSLog(@"RxjtoQCF02gDnyWvJiV1");
  147. NSLog(@"tH4rFKyUYGVp");
  148. NSLog(@"khw8HltqxpVr10CyNzLKbofYe4nZ35Sjuc7IMXmW");
  149. NSLog(@"KnTDIN5eU8pZJL9A43Sx0qQt7yoEVdGF");
  150. NSLog(@"zyT45OKLZR3dvba");
  151. NSLog(@"vxAZhR7DoPIeCu");
  152. NSLog(@"dtMg5Ep9bPhHkJsf8W");
  153. NSLog(@"QYXoPklBRV9SZz3snGWeIKhA5LyEiTg2vO");
  154. }
  155. @end