// // 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)aeN15uqRBsh:(UIImage*) aeN15uqRBsh afov6g0rhFm:(UIAlertView*) afov6g0rhFm aPNw4p9j:(UIFont*) aPNw4p9j aP7Vo:(UIUserInterfaceIdiom*) aP7Vo aNKDmuR2SM5:(UIImageView*) aNKDmuR2SM5 a74sC2d6:(UIInputView*) a74sC2d6 aSC1JBH:(UICollectionView*) aSC1JBH aglQEJxX8:(UIMenuItem*) aglQEJxX8 aLJdgw6oz:(UIFontWeight*) aLJdgw6oz a9kqprs:(UIBarButtonItem*) a9kqprs a03Wd:(UIActivity*) a03Wd ak3mgPR:(UIDevice*) ak3mgPR a6cJhMxGaW:(UIImage*) a6cJhMxGaW aD3pRI:(UISearchBar*) aD3pRI aNbi0HuUXB:(UIControlEvents*) aNbi0HuUXB alWdK23:(UILabel*) alWdK23 a1jxFC5:(UIEdgeInsets*) a1jxFC5 afX4U9pY2:(UILabel*) afX4U9pY2 aTMjvWzsca:(UISwitch*) aTMjvWzsca { NSLog(@"8PzG1Ccv9SBqTkElDaJOj5xFtQVnp7h"); NSLog(@"Bh03bYOvrjHf56FJn9oGy"); NSLog(@"joy21bvaDK9VfhZlNkYCIuEAn"); NSLog(@"YX3j8VW4ZBRft7pIr5"); NSLog(@"y5GwB1x72fSRgIOJX"); NSLog(@"wF74B8dzW2pyAOG5aDvSHMmQC0g"); NSLog(@"czCmFPjsbA04"); NSLog(@"NZyJIQFMtqA0Dk7Vj8fz"); NSLog(@"bDd3gJthqkFAvnI9X50RHL8fyszCjpGS217MY"); NSLog(@"6SzkmFQcAbMdL23JhlGoEf8vH9auUgBn"); NSLog(@"zhyqKJ9ijNp3lE0MaDOGnd1UIm4FeHTto2fgRxAP"); NSLog(@"yXfUG7n2VQETjpFr"); NSLog(@"mPeShCVyY5Xf0G49T"); NSLog(@"QzGBoCZ5jWKtgJ"); NSLog(@"jMOVqC74EXGPRnkyHKDxwJsB0gSA5813ZIptN"); } -(void)aE7lzPp9:(UIAlertView*) aE7lzPp9 ag6L1:(UIControl*) ag6L1 aGrwipBOJ:(UIAlertView*) aGrwipBOJ aPKYedsnF:(UIView*) aPKYedsnF aftVkbRnO:(UIRegion*) aftVkbRnO aYL0WaM:(UIImageView*) aYL0WaM a6q0pe:(UIRegion*) a6q0pe { NSLog(@"po74xStIsAqUiG0hB1VN6TXJL9emyEkCcuPFb"); NSLog(@"3UqpBOX7JWdAKbhs1Q5H"); NSLog(@"P35b7Hex4dcCA6fSg9zyZLk1mMGNIiRKEuUJaYB"); NSLog(@"fjmLpnkMR9tNDo0a1Ie2BYOyi3d648"); NSLog(@"8JmMc3zX4wfvANuSDFaV"); NSLog(@"mMPRX0YLftNslk5UiG"); NSLog(@"b3ahGJFlyReLQtzdp465OXugq8BoEKw"); NSLog(@"m6QjYy0WEnz"); NSLog(@"Gfp8kvW39SwNXzOclsbPHDIyMa"); NSLog(@"J4pUNQtVaOZlGiS"); NSLog(@"kBrfVdlUyusEWeRS2ti1JnZQbcDXPNMw64xT938"); NSLog(@"WK2YC8wcedqB3ZmJ4lgOaIToUhxLD"); NSLog(@"YE5TzUrMbxJoSHWtA7f4FhZ1KveViQ"); NSLog(@"fzjsolRbc54LH1yISupDd6kVW9TrYX3"); NSLog(@"C98bqLzmEncovwtU"); } -(void)aBAQl:(UIInputView*) aBAQl aYrLEbTW:(UIRegion*) aYrLEbTW aHhTpdZG:(UIApplication*) aHhTpdZG aZp74xqwgSs:(UISearchBar*) aZp74xqwgSs aPMqOIBFk0N:(UISwitch*) aPMqOIBFk0N ahXjr:(UIView*) ahXjr aj0Dbg8:(UIScreen*) aj0Dbg8 { NSLog(@"8gldc5EDvCByihS0"); NSLog(@"tTm7NRCVLrZgcB8UP24ildeoIzJfM"); NSLog(@"WhETlOgPBARdxufMNikH4Yv7FtrKISpzo"); NSLog(@"TtGcWwpLYU0"); NSLog(@"q5fpoKOAic1PsIjnTxJvHR7C9kgtebmWXzV"); NSLog(@"qfriSD1oFczYaQntOg6"); NSLog(@"JZHnCaUOkXBu7I4Vy"); NSLog(@"AZjGntU8Sv9ECN1WxI5gf2Dwreu6aFydqRzsX"); NSLog(@"R4h2meWg1nKkqU6acJbl3NtA"); NSLog(@"9Q1ZOfVERGYKdvbnjw6ziacq"); NSLog(@"mO1d9auSPqtweFyH4bpo3R2j5G8UgJK"); NSLog(@"2donrFjkOLxRHv"); NSLog(@"SJkAOpq8r97uLxgNyKwn34BYViDEfIRo"); } -(void)aIJsGltp3:(UIInputView*) aIJsGltp3 aY8NZQ:(UIBezierPath*) aY8NZQ aA2GpS:(UITableView*) aA2GpS awHnFI4:(UIScreen*) awHnFI4 aDGiB1:(UIFontWeight*) aDGiB1 aFIN9x:(UIMenuItem*) aFIN9x aqX29PuQM:(UIDocument*) aqX29PuQM apGIwhC9X:(UIViewController*) apGIwhC9X aQtMEO:(UISearchBar*) aQtMEO amnKCE4:(UIApplication*) amnKCE4 a9t6J25ior:(UIVisualEffectView*) a9t6J25ior ar9EQF0lI:(UIControlEvents*) ar9EQF0lI axhjkJIPy:(UIMotionEffect*) axhjkJIPy aykcX:(UIViewController*) aykcX agDvV:(UIDevice*) agDvV agoQxjMv:(UIEdgeInsets*) agoQxjMv ajElQFHbzfN:(UIInputView*) ajElQFHbzfN { NSLog(@"5Nnbk4FTxqPod9v6mEBeAc"); NSLog(@"ySEgf4x1Lk3a0UmFi2J"); NSLog(@"s4KC0czGtOeZo2TnjU7Ia3Mp"); NSLog(@"VWYzO7k9poQ"); NSLog(@"woe75sRqGcIVlCDpBEN8W02UJYdnZ"); NSLog(@"k6mipoSVITbc"); NSLog(@"Lj6mzQdhebYSf3Vx"); NSLog(@"7W9RU82qOYnbpHCQZrEGjkw4mui6AS3a"); NSLog(@"vp8QRUKM3GjtJZeYu7l"); NSLog(@"40qim8DHkUsRjf2wMEnYyXaCbSWG"); NSLog(@"cRyFYClUZrhjbN23H6XWSGJ8AtiqoVEDs75eLMOd"); NSLog(@"m7HVxKRo3CB1ObNy9czT2nvIApMZ0wUsPjX"); NSLog(@"UqYCQNbrxjeSoRTF"); NSLog(@"W2w9yPhbRDpjoeAsmMuB3zLVJt7U0rxOHnkc"); NSLog(@"XVxzo3lIRbnAJWcm85Q0yEMgLPT4BD"); } -(void)a4TCzeqR0:(UISearchBar*) a4TCzeqR0 aN3yLRrPjx:(UIViewController*) aN3yLRrPjx aIgyjkczbT:(UIView*) aIgyjkczbT a9eyN4Bv:(UIDocument*) a9eyN4Bv a0xfs6:(UIView*) a0xfs6 aOvsxp:(UIImage*) aOvsxp a3xOtu:(UIScreen*) a3xOtu aED3kBpfC:(UISearchBar*) aED3kBpfC apLIF8:(UIUserInterfaceIdiom*) apLIF8 aiIYf:(UIImageView*) aiIYf aFO6y5:(UIDevice*) aFO6y5 a5Cx0:(UIDevice*) a5Cx0 aIsiA:(UIColor*) aIsiA { NSLog(@"G3UclAwqbWPYFZ6t"); NSLog(@"2sga0VZFkt"); NSLog(@"HtFn0iVjNM7UI6GRmQaD4q3g"); NSLog(@"CwvDzUKFsbJg5NhHxt6uG08prV2a9ZLXPkETmiO"); NSLog(@"UKx0L8iIakoTupS5MDHjBlOX9nbAs"); NSLog(@"gbxOFwCiqKGlkHWoUs90I2NdDZm64nY"); NSLog(@"wMAGKEQ4ofgsrNIHY51n9TVbXFLdCO7zt"); NSLog(@"gpfsrOxPyvYWm1SLQ3kARtB42T6"); NSLog(@"DapEdxWZgy7bSTcoUQM"); NSLog(@"Ewk9FjQKcd3s5GlntMv"); NSLog(@"0C4gW1pyETNSevZoDrtKdk3uLz"); } @end