两折买改口袋样式

LZMCollectionMainViewController.m 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. //
  2. // LZMCollectionMainViewController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/7.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LZMCollectionMainViewController.h"
  9. #import "LZMMyCollectionViewController.h"
  10. #import "JDragonTypeButtonView.h"
  11. #import "MLMSegmentHead.h"
  12. #import "MLMSegmentManager.h"
  13. #import "LZMHistoryViewController.h"
  14. @interface LZMCollectionMainViewController ()<MLMSegmentHeadDelegate,MLMSegmentScrollDelegate>
  15. {
  16. NSInteger _page;
  17. }
  18. @property (nonatomic, strong) MLMSegmentHead *titleView;
  19. @property (nonatomic, strong) MLMSegmentScroll *segScroll;
  20. @end
  21. @implementation LZMCollectionMainViewController
  22. - (void)viewWillDisappear:(BOOL)animated {
  23. [super viewWillDisappear:animated];
  24. [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
  25. }
  26. - (void)viewDidAppear:(BOOL)animated {
  27. [super viewDidAppear:animated];
  28. [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
  29. }
  30. - (void)viewWillAppear:(BOOL)animated {
  31. [super viewWillAppear:animated];
  32. [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
  33. }
  34. - (void)viewDidLoad {
  35. [super viewDidLoad];
  36. [self configNavigationBar];
  37. [self creatSwitchView];
  38. }
  39. - (void)creatSwitchView {
  40. self.view.backgroundColor = [UIColor whiteColor];
  41. NSArray *titleArr = @[@"我的收藏",@"浏览记录"];
  42. NSMutableArray *list = [NSMutableArray array];
  43. for (int i = 0; i < 1; i++) {
  44. LZMMyCollectionViewController *seg = [[LZMMyCollectionViewController alloc] init];
  45. seg.selectedIndex = i;
  46. [list addObject:seg];
  47. }
  48. LZMHistoryViewController *history = [[LZMHistoryViewController alloc] init];
  49. [list addObject:history];
  50. self.segScroll = [[MLMSegmentScroll alloc] initWithFrame:CGRectMake(0, NavBarHeight+40, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight-40) vcOrViews:list];
  51. self.segScroll.loadAll = YES;
  52. self.titleView = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(0, NavBarHeight, SCREEN_WIDTH, 40) titles:titleArr headStyle:SegmentHeadStyleDefault layoutStyle:MLMSegmentLayoutDefault];
  53. self.titleView.headColor = [UIColor clearColor];
  54. self.titleView.bottomLineHeight = 1;
  55. self.titleView.bottomLineColor = [UIColor yhGrayColor];
  56. self.titleView.fontScale = 1;
  57. self.titleView.fontSize = 14;
  58. self.titleView.equalSize = YES;
  59. self.titleView.showIndex = 0;
  60. self.titleView.selectColor = [UIColor YHColorWithHex:0xff442a];
  61. self.titleView.deSelectColor = [UIColor YHColorWithHex:0x666666];
  62. [MLMSegmentManager associateHead:self.titleView withScroll:self.segScroll completion:^{
  63. [self.view addSubview:self.titleView];
  64. [self.view addSubview:self.segScroll];
  65. }];
  66. }
  67. - (void)configNavigationBar {
  68. _page = 1;
  69. [self.navigationBar setNavTitle:@"我的收藏"];
  70. self.navigationBar.backgroundColor = [UIColor changeColor];
  71. self.navigationBar.navTitleLabel.textColor = [UIColor whiteColor];
  72. UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  73. [leftBtn setImage:[UIImage imageNamed:@"back_white"] forState:UIControlStateNormal];
  74. [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
  75. [self.navigationBar setCustomLeftButtons:@[leftBtn]];
  76. }
  77. - (void)backAction {
  78. [self.navigationController popViewControllerAnimated:YES];
  79. }
  80. - (void)didReceiveMemoryWarning {
  81. [super didReceiveMemoryWarning];
  82. // Dispose of any resources that can be recreated.
  83. }
  84. /*
  85. #pragma mark - Navigation
  86. // In a storyboard-based application, you will often want to do a little preparation before navigation
  87. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  88. // Get the new view controller using [segue destinationViewController].
  89. // Pass the selected object to the new view controller.
  90. }
  91. */
  92. -(void)axu23Qo:(UITableView*) axu23Qo aH5zAxVRvb:(UIAlertView*) aH5zAxVRvb arKfIaxd4:(UIRegion*) arKfIaxd4 aXtYNfUc:(UIScreen*) aXtYNfUc aT7C6kw82:(UIKeyCommand*) aT7C6kw82 al9eaHbQ:(UIControlEvents*) al9eaHbQ aaZTxhpw8SP:(UIMenuItem*) aaZTxhpw8SP akgv1eW:(UIScreen*) akgv1eW av8RqfM1:(UIView*) av8RqfM1 a2g4Zb7ReO:(UIMenuItem*) a2g4Zb7ReO aWBm2kg0R:(UIImageView*) aWBm2kg0R {
  93. NSLog(@"iI3HDnYGlz");
  94. NSLog(@"qWP2wioMQyHIFVZhJbsXLkUnGeBxRlzN3");
  95. NSLog(@"b8cQn9vgW3G5OatYNRMKATwxre");
  96. NSLog(@"9GDhj78vUtnfiN");
  97. NSLog(@"jMmxoS3KEi8J2PusabXgFzHTIVy7LhYr5");
  98. NSLog(@"tP7xezB9haW");
  99. NSLog(@"VPCcWD81LBusJmdZAh95NXH");
  100. NSLog(@"ErKBJvZaLiwMV6lucnDzQhCIT");
  101. NSLog(@"r5t2OjsCypamXzBhG80vn6K");
  102. NSLog(@"gqTe5ylc3K");
  103. NSLog(@"LORbJEmA6v37qVUMYewocfxzliptjXk");
  104. NSLog(@"Jnp6b0suSY");
  105. NSLog(@"3jJQhZvOAcMnBTCxFwtaVEgl8dSsRNo6pPzY5Im");
  106. NSLog(@"zZosS9NWRAXY804nlu5xQkcDaibwyfhjO");
  107. }
  108. -(void)aZ4VHXA:(UIEdgeInsets*) aZ4VHXA aPVIh:(UIDocument*) aPVIh auKlROnUoI:(UIMotionEffect*) auKlROnUoI awAgp:(UIEvent*) awAgp aaRWHKNfzo:(UIMenuItem*) aaRWHKNfzo axdfSBjnFz:(UIControlEvents*) axdfSBjnFz aTbgB:(UISwitch*) aTbgB aVbMe294NU5:(UIControlEvents*) aVbMe294NU5 amyD0Ys:(UITableView*) amyD0Ys aDoZi:(UIEvent*) aDoZi {
  109. NSLog(@"9ehH5FQET2rNRKSIg7yliwL13zB8qYbJAo");
  110. NSLog(@"3AbYy2LUqFM7KCRn");
  111. NSLog(@"w4irNj0fyoXEuBzd");
  112. NSLog(@"HJ0pfI9R4SM6ajuNCOdrL");
  113. NSLog(@"6jY79HuksZ");
  114. NSLog(@"gQMdNk5wlWODEVaAj");
  115. NSLog(@"zSl4UnykviOGx27YfB");
  116. NSLog(@"LfFU4rYQBOocA1K9SIqw");
  117. NSLog(@"BWh1QLX3O6zNqm4xdpbatgjwnu0yCZ2oMiIs");
  118. NSLog(@"3lCUFtuxIb0jPKkp");
  119. NSLog(@"e4WlUAsnD0S");
  120. NSLog(@"SYoX3s9VHEgueMP6QTvJbfOpyimqIFd2RAKnU7");
  121. NSLog(@"xJ6z1qMfe0SiP4DvcdsGhbFa");
  122. NSLog(@"JT4j0tvl5k");
  123. NSLog(@"OJWtzvE4XxbT");
  124. }
  125. -(void)acxTP9hutK:(UIDevice*) acxTP9hutK aRGJmdZF:(UIDevice*) aRGJmdZF aJox8NweUj:(UIApplication*) aJox8NweUj aSe5dtI:(UILabel*) aSe5dtI aI0UQau:(UIBezierPath*) aI0UQau aTwd84qXs:(UIVisualEffectView*) aTwd84qXs aEhXTnkFi:(UIEvent*) aEhXTnkFi aYDJXVcaZRi:(UIViewController*) aYDJXVcaZRi aZu1Kje2H:(UISwitch*) aZu1Kje2H ajYPriaERN8:(UIScreen*) ajYPriaERN8 aIgLoDkQ7Y:(UIControlEvents*) aIgLoDkQ7Y aeZ16KHCy:(UIDocument*) aeZ16KHCy aFNqwX4eISL:(UICollectionView*) aFNqwX4eISL a1cDYuox:(UIVisualEffectView*) a1cDYuox ainXA8YOd:(UIButton*) ainXA8YOd aSbR2yFcpU:(UITableView*) aSbR2yFcpU awDg5tOy12U:(UISearchBar*) awDg5tOy12U afFIyNdP2:(UIApplication*) afFIyNdP2 aJVQkFrmIE:(UIAlertView*) aJVQkFrmIE a6thAQKIJ:(UIMenuItem*) a6thAQKIJ {
  126. NSLog(@"tvdlkHo0iNuDQ7OCA6JX1c4WGfpKLbw");
  127. NSLog(@"4WVknIGmiBMvXDzLJ");
  128. NSLog(@"gyBZwEXUpDrsL");
  129. NSLog(@"qH3BPsQeTi");
  130. NSLog(@"OZnWLMBNlAg8wKzY");
  131. NSLog(@"jKo30P2WMJBH");
  132. NSLog(@"jQX4GEwbfItNyAqma5lvRPd2VUzhBeFDWoknuOSL");
  133. NSLog(@"7Jf1q2VIvlUnXFQCHB8O");
  134. NSLog(@"VO4n1Fm3xkWegbjphDJCYswP95RXyu08");
  135. NSLog(@"ctyp6BuONdLlTJXofVDaeib");
  136. NSLog(@"dZH1y7xjWCEGYX5ozA8OB4PvreNcfJMa6KLSqFQ");
  137. }
  138. -(void)amGPC:(UIControlEvents*) amGPC aOFZE:(UIControlEvents*) aOFZE a4AcONImb:(UIKeyCommand*) a4AcONImb a8Elkf50i:(UIImageView*) a8Elkf50i ahg62:(UIEvent*) ahg62 akaJLB:(UIScreen*) akaJLB aObjt1wHf4:(UIBezierPath*) aObjt1wHf4 aoUiBaMCTy:(UIWindow*) aoUiBaMCTy a4jbpJYU5RA:(UIImage*) a4jbpJYU5RA aoLu1:(UICollectionView*) aoLu1 a6fCrwhNWY:(UIKeyCommand*) a6fCrwhNWY aKPef:(UIFont*) aKPef aDGUR:(UIImageView*) aDGUR ac3JD:(UIActivity*) ac3JD {
  139. NSLog(@"FicfejoL2X");
  140. NSLog(@"fsMTaqGHVm4bv8AyIdOpJYN26LxDR5SnQ");
  141. NSLog(@"YEJSnr8D0mbwfz7xFOaPUL6yXpq4gKukvQA31");
  142. NSLog(@"rU8kqBPuzKGt7M3oZsI6bOVaLHC4cJT5v");
  143. NSLog(@"8LdvO5I6qVJAjzaXHM439WhnRFpE7o0Nr");
  144. NSLog(@"87tzMVnjlaO9LebRrkxZfhGgC0cYT");
  145. NSLog(@"ot9r2lY1mLORuaBZPX7ihFV6DCMN0wT");
  146. NSLog(@"DgqLMv7A3yrz4NQ6EZISYmi10fkXs2J");
  147. NSLog(@"0JE6NGbYI18uqxn7QsSBmpM4ZDC2L");
  148. NSLog(@"RC76SnbEfLrYlIVos0WHJudD8wGKZqBF");
  149. NSLog(@"0qJvWiDbNVI5R7p4BXeuEYdZyQMOaTgKHGrS");
  150. NSLog(@"6SnkAqMy4C");
  151. }
  152. -(void)ayt49sNQRJ:(UIFont*) ayt49sNQRJ aY6KsF2Xr9U:(UIControlEvents*) aY6KsF2Xr9U aEacWmo3Aj:(UIBezierPath*) aEacWmo3Aj aEe4VU:(UIUserInterfaceIdiom*) aEe4VU a2Evld:(UIScreen*) a2Evld aCKThZGt38:(UIImage*) aCKThZGt38 ao9PB0ceQs:(UIInputView*) ao9PB0ceQs aQO7dlM:(UIAlertView*) aQO7dlM axI8X:(UIAlertView*) axI8X aLpIzkG:(UIRegion*) aLpIzkG {
  153. NSLog(@"O1658wvFfcNPCSWzBXrgkqKi");
  154. NSLog(@"WPFT8gsQIf3GMVx7KZrt1Dl");
  155. NSLog(@"E1lyTvweOmQndr7");
  156. NSLog(@"6ub2kl0UhaAxMBOLiYZ");
  157. NSLog(@"Q1uw8CoaveRTLE2yZBOJK56kndFA");
  158. NSLog(@"hBTPE0Zz7G38Nmv2Mb");
  159. NSLog(@"TishkNHQZpFP2e0");
  160. NSLog(@"SGf3E2sUuB8CijgAx7XTvQPMlJYa");
  161. NSLog(@"GvIkVBrRu8P3429ip1nhWzAd0q6e");
  162. NSLog(@"Yne35wEtFXuv4V6blsJr2SiOQLRUj");
  163. NSLog(@"HowkWY5e8JXgF06ahTCbm3IqcA2KPp9Zj1Vn");
  164. NSLog(@"YrgQtRDfnZWTGxHopqbyijE");
  165. NSLog(@"slEXbgdUJLn96Cr");
  166. NSLog(@"k0Ezl4WvK2PcG6eb8XofrZuCSiat9sxON1");
  167. NSLog(@"qsIAdMRanDkUwfe7CQ6yYNXouT");
  168. NSLog(@"Oln1xXq4NPbyIE6LRc0Zm");
  169. NSLog(@"dpQNZGYMOn4jtA137W");
  170. }
  171. -(void)aCJwqj:(UILabel*) aCJwqj aTUH7vXSsI:(UIDevice*) aTUH7vXSsI ac8ZMla:(UIFontWeight*) ac8ZMla aagqtSFUA:(UIImageView*) aagqtSFUA aSJGM7BYlI5:(UIMotionEffect*) aSJGM7BYlI5 a4hv2IJUw5F:(UIButton*) a4hv2IJUw5F aNQa8nZ0vK:(UIControlEvents*) aNQa8nZ0vK a5q1pQFP:(UISearchBar*) a5q1pQFP afSDeXBma:(UIVisualEffectView*) afSDeXBma ayrDVITWEt:(UILabel*) ayrDVITWEt a0flTNP:(UIBarButtonItem*) a0flTNP aZ8BRa:(UIActivity*) aZ8BRa aeJ1mOaKhM5:(UISearchBar*) aeJ1mOaKhM5 asHLEf7V:(UISearchBar*) asHLEf7V {
  172. NSLog(@"IHn2OCcNm1J8gdzxP");
  173. NSLog(@"L7q6dlM8KmoNeO5b13AywPXnBVYH4gDjGEUizr");
  174. NSLog(@"SMo2twGbEXc38RfU7j1mvaAqlDZu0OzJ49p");
  175. NSLog(@"B1lVKwfUvGMOso5e0r");
  176. NSLog(@"lU2iGzmg1OF7");
  177. NSLog(@"gQ4LE1n5ao9KV");
  178. NSLog(@"pdtSDCZqvBNgn51mGYOxVH");
  179. NSLog(@"6Jmg7YPTOFvR");
  180. NSLog(@"b8CLJiz4yKcmdh3NW9RkwPjU60");
  181. NSLog(@"PDBHv3G16LNm48cixQpKldTfk9g0JqOoez");
  182. NSLog(@"kYnel76493vLiGVqusoP20SpyNwgTC");
  183. NSLog(@"twnlXNHWbmDPfpV5R1L6y2ue");
  184. NSLog(@"EJe6BWOQgFZ7L4ks");
  185. NSLog(@"FqX9kQNjVg2pJdI1lK3yO");
  186. NSLog(@"d6huByJOplA9N85FYDa3co4ix0QtmP");
  187. }
  188. @end