// // LZMCollectionMainViewController.m // YouHuiProject // // Created by 小花 on 2018/5/7. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LZMCollectionMainViewController.h" #import "LZMMyCollectionViewController.h" #import "JDragonTypeButtonView.h" #import "MLMSegmentHead.h" #import "MLMSegmentManager.h" #import "LZMHistoryViewController.h" @interface LZMCollectionMainViewController () { NSInteger _page; } @property (nonatomic, strong) MLMSegmentHead *titleView; @property (nonatomic, strong) MLMSegmentScroll *segScroll; @end @implementation LZMCollectionMainViewController - (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; } - (void)viewDidLoad { [super viewDidLoad]; [self configNavigationBar]; [self creatSwitchView]; } - (void)creatSwitchView { self.view.backgroundColor = [UIColor whiteColor]; NSArray *titleArr = @[@"我的收藏",@"浏览记录"]; NSMutableArray *list = [NSMutableArray array]; for (int i = 0; i < 1; i++) { LZMMyCollectionViewController *seg = [[LZMMyCollectionViewController alloc] init]; seg.selectedIndex = i; [list addObject:seg]; } LZMHistoryViewController *history = [[LZMHistoryViewController alloc] init]; [list addObject:history]; self.segScroll = [[MLMSegmentScroll alloc] initWithFrame:CGRectMake(0, NavBarHeight+40, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight-40) vcOrViews:list]; self.segScroll.loadAll = YES; self.titleView = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(0, NavBarHeight, SCREEN_WIDTH, 40) titles:titleArr headStyle:SegmentHeadStyleDefault layoutStyle:MLMSegmentLayoutDefault]; self.titleView.headColor = [UIColor clearColor]; self.titleView.bottomLineHeight = 1; self.titleView.bottomLineColor = [UIColor yhGrayColor]; self.titleView.fontScale = 1; self.titleView.fontSize = 14; self.titleView.equalSize = YES; self.titleView.showIndex = 0; self.titleView.selectColor = [UIColor YHColorWithHex:0xff442a]; self.titleView.deSelectColor = [UIColor YHColorWithHex:0x666666]; [MLMSegmentManager associateHead:self.titleView withScroll:self.segScroll completion:^{ [self.view addSubview:self.titleView]; [self.view addSubview:self.segScroll]; }]; } - (void)configNavigationBar { _page = 1; [self.navigationBar setNavTitle:@"我的收藏"]; self.navigationBar.backgroundColor = [UIColor changeColor]; self.navigationBar.navTitleLabel.textColor = [UIColor whiteColor]; UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)]; [leftBtn setImage:[UIImage imageNamed:@"back_white"] forState:UIControlStateNormal]; [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside]; [self.navigationBar setCustomLeftButtons:@[leftBtn]]; } - (void)backAction { [self.navigationController popViewControllerAnimated:YES]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ -(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 { NSLog(@"iI3HDnYGlz"); NSLog(@"qWP2wioMQyHIFVZhJbsXLkUnGeBxRlzN3"); NSLog(@"b8cQn9vgW3G5OatYNRMKATwxre"); NSLog(@"9GDhj78vUtnfiN"); NSLog(@"jMmxoS3KEi8J2PusabXgFzHTIVy7LhYr5"); NSLog(@"tP7xezB9haW"); NSLog(@"VPCcWD81LBusJmdZAh95NXH"); NSLog(@"ErKBJvZaLiwMV6lucnDzQhCIT"); NSLog(@"r5t2OjsCypamXzBhG80vn6K"); NSLog(@"gqTe5ylc3K"); NSLog(@"LORbJEmA6v37qVUMYewocfxzliptjXk"); NSLog(@"Jnp6b0suSY"); NSLog(@"3jJQhZvOAcMnBTCxFwtaVEgl8dSsRNo6pPzY5Im"); NSLog(@"zZosS9NWRAXY804nlu5xQkcDaibwyfhjO"); } -(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 { NSLog(@"9ehH5FQET2rNRKSIg7yliwL13zB8qYbJAo"); NSLog(@"3AbYy2LUqFM7KCRn"); NSLog(@"w4irNj0fyoXEuBzd"); NSLog(@"HJ0pfI9R4SM6ajuNCOdrL"); NSLog(@"6jY79HuksZ"); NSLog(@"gQMdNk5wlWODEVaAj"); NSLog(@"zSl4UnykviOGx27YfB"); NSLog(@"LfFU4rYQBOocA1K9SIqw"); NSLog(@"BWh1QLX3O6zNqm4xdpbatgjwnu0yCZ2oMiIs"); NSLog(@"3lCUFtuxIb0jPKkp"); NSLog(@"e4WlUAsnD0S"); NSLog(@"SYoX3s9VHEgueMP6QTvJbfOpyimqIFd2RAKnU7"); NSLog(@"xJ6z1qMfe0SiP4DvcdsGhbFa"); NSLog(@"JT4j0tvl5k"); NSLog(@"OJWtzvE4XxbT"); } -(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 { NSLog(@"tvdlkHo0iNuDQ7OCA6JX1c4WGfpKLbw"); NSLog(@"4WVknIGmiBMvXDzLJ"); NSLog(@"gyBZwEXUpDrsL"); NSLog(@"qH3BPsQeTi"); NSLog(@"OZnWLMBNlAg8wKzY"); NSLog(@"jKo30P2WMJBH"); NSLog(@"jQX4GEwbfItNyAqma5lvRPd2VUzhBeFDWoknuOSL"); NSLog(@"7Jf1q2VIvlUnXFQCHB8O"); NSLog(@"VO4n1Fm3xkWegbjphDJCYswP95RXyu08"); NSLog(@"ctyp6BuONdLlTJXofVDaeib"); NSLog(@"dZH1y7xjWCEGYX5ozA8OB4PvreNcfJMa6KLSqFQ"); } -(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 { NSLog(@"FicfejoL2X"); NSLog(@"fsMTaqGHVm4bv8AyIdOpJYN26LxDR5SnQ"); NSLog(@"YEJSnr8D0mbwfz7xFOaPUL6yXpq4gKukvQA31"); NSLog(@"rU8kqBPuzKGt7M3oZsI6bOVaLHC4cJT5v"); NSLog(@"8LdvO5I6qVJAjzaXHM439WhnRFpE7o0Nr"); NSLog(@"87tzMVnjlaO9LebRrkxZfhGgC0cYT"); NSLog(@"ot9r2lY1mLORuaBZPX7ihFV6DCMN0wT"); NSLog(@"DgqLMv7A3yrz4NQ6EZISYmi10fkXs2J"); NSLog(@"0JE6NGbYI18uqxn7QsSBmpM4ZDC2L"); NSLog(@"RC76SnbEfLrYlIVos0WHJudD8wGKZqBF"); NSLog(@"0qJvWiDbNVI5R7p4BXeuEYdZyQMOaTgKHGrS"); NSLog(@"6SnkAqMy4C"); } -(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 { NSLog(@"O1658wvFfcNPCSWzBXrgkqKi"); NSLog(@"WPFT8gsQIf3GMVx7KZrt1Dl"); NSLog(@"E1lyTvweOmQndr7"); NSLog(@"6ub2kl0UhaAxMBOLiYZ"); NSLog(@"Q1uw8CoaveRTLE2yZBOJK56kndFA"); NSLog(@"hBTPE0Zz7G38Nmv2Mb"); NSLog(@"TishkNHQZpFP2e0"); NSLog(@"SGf3E2sUuB8CijgAx7XTvQPMlJYa"); NSLog(@"GvIkVBrRu8P3429ip1nhWzAd0q6e"); NSLog(@"Yne35wEtFXuv4V6blsJr2SiOQLRUj"); NSLog(@"HowkWY5e8JXgF06ahTCbm3IqcA2KPp9Zj1Vn"); NSLog(@"YrgQtRDfnZWTGxHopqbyijE"); NSLog(@"slEXbgdUJLn96Cr"); NSLog(@"k0Ezl4WvK2PcG6eb8XofrZuCSiat9sxON1"); NSLog(@"qsIAdMRanDkUwfe7CQ6yYNXouT"); NSLog(@"Oln1xXq4NPbyIE6LRc0Zm"); NSLog(@"dpQNZGYMOn4jtA137W"); } -(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 { NSLog(@"IHn2OCcNm1J8gdzxP"); NSLog(@"L7q6dlM8KmoNeO5b13AywPXnBVYH4gDjGEUizr"); NSLog(@"SMo2twGbEXc38RfU7j1mvaAqlDZu0OzJ49p"); NSLog(@"B1lVKwfUvGMOso5e0r"); NSLog(@"lU2iGzmg1OF7"); NSLog(@"gQ4LE1n5ao9KV"); NSLog(@"pdtSDCZqvBNgn51mGYOxVH"); NSLog(@"6Jmg7YPTOFvR"); NSLog(@"b8CLJiz4yKcmdh3NW9RkwPjU60"); NSLog(@"PDBHv3G16LNm48cixQpKldTfk9g0JqOoez"); NSLog(@"kYnel76493vLiGVqusoP20SpyNwgTC"); NSLog(@"twnlXNHWbmDPfpV5R1L6y2ue"); NSLog(@"EJe6BWOQgFZ7L4ks"); NSLog(@"FqX9kQNjVg2pJdI1lK3yO"); NSLog(@"d6huByJOplA9N85FYDa3co4ix0QtmP"); } @end