123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- //
- // LFWCollectionViewController.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/1/24.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LFWCollectionViewController.h"
- #import "LFWTypeButtonHeader.h"
- #import "LFWCollectionTicketController.h"
- #import "LFWCollectionGoodsController.h"
- #import "MLMSegmentHead.h"
- #import "MLMSegmentManager.h"
- @interface LFWCollectionViewController ()<UIScrollViewDelegate,MLMSegmentHeadDelegate>
- @property (nonatomic, strong) UIScrollView *scrollView;
- @property (nonatomic, strong) MLMSegmentHead *titleView;
- @property (nonatomic, strong) NSArray *childVCArr;
- @property (nonatomic, assign) NSInteger currentIndex;
- @end
- @implementation LFWCollectionViewController
- - (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
- [self.view bringSubviewToFront:self.navigationBar];
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
-
- [self configNavigtionBar];
- [self configChildViewController];
- }
- - (void)configNavigtionBar {
-
- // UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
- // [leftBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
- // [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
- // [self.navigationBar setCustomLeftButtons:@[leftBtn]];
- self.navigationBar.showNavigationBarBottomLine = YES;
-
- NSArray *list = @[@"收藏的券",@"收藏的商品"];
- self.titleView = [[MLMSegmentHead alloc] initWithFrame:CGRectMake(50, NavBarHeight-44, SCREEN_WIDTH-100, 44) titles:list headStyle:SegmentHeadStyleLine layoutStyle:MLMSegmentLayoutCenter];
- self.titleView.headColor = [UIColor clearColor];
- self.titleView.fontScale = 1;
- self.titleView.fontSize = 14;
- self.titleView.lineScale = .8;
- self.titleView.equalSize = YES;
- self.titleView.bottomLineHeight = 0;
- self.titleView.lineColor = [UIColor homeRedColor];
- self.titleView.delegate = self;
- self.titleView.selectColor = [UIColor homeRedColor];
- self.titleView.deSelectColor = [UIColor YHColorWithHex:0x666666];
- [MLMSegmentManager associateHead:self.titleView withScroll:nil completion:^{
- [self.navigationBar addSubview:self.titleView];
- self.titleView.centerX = self.navigationBar.centerX;
- }];
-
- }
- - (void)configChildViewController {
-
- LFWCollectionTicketController *ticket = [[LFWCollectionTicketController alloc] init];
- [self.view addSubview:ticket.view];
- [self addChildViewController:ticket];
- ticket.view.y = NavBarHeight;
-
- LFWCollectionGoodsController *goods = [[LFWCollectionGoodsController alloc] init];
- [self.view insertSubview:goods.view belowSubview:ticket.view];
- [self addChildViewController:goods];
- goods.view.y = NavBarHeight;
- self.currentIndex = 0;
- self.childVCArr = @[ticket,goods];
-
- }
- - (void)backAction {
- [self.navigationController popViewControllerAnimated:YES];
- }
- #pragma mark --------------------- MLMSegmentHeadDelegate ---------
- - (void)didSelectedIndex:(NSInteger)index {
- [self transitionFromViewController:self.childVCArr[self.currentIndex] toViewController:self.childVCArr[index] duration:0.3 options:UIViewAnimationOptionCurveEaseOut animations:nil completion:^(BOOL finished) {
- self.currentIndex = index;
- }];
- }
- #pragma mark ------
- - (UIScrollView *)scrollView {
- if (!_scrollView) {
- _scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, NavBarHeight, SCREEN_WIDTH, SCREEN_HEIGHT-NavBarHeight)];
- _scrollView.delegate = self;
- _scrollView.pagingEnabled = YES;
-
- }
- return _scrollView;
- }
- - (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)aaG1Dl:(UIControlEvents*) aaG1Dl aJrP0u3U:(UIControlEvents*) aJrP0u3U an5cjw:(UIAlertView*) an5cjw aWJe1:(UIViewController*) aWJe1 ajypI:(UIBarButtonItem*) ajypI aLg7j5QF:(UIWindow*) aLg7j5QF an5Alxwzb6:(UIButton*) an5Alxwzb6 aS4TepCB8ng:(UIAlertView*) aS4TepCB8ng akzHVa:(UIView*) akzHVa aUvngK7:(UIInputView*) aUvngK7 a9A4oFm:(UIView*) a9A4oFm aw7pU0zOr6:(UIAlertView*) aw7pU0zOr6 adaSelORcJ:(UIFont*) adaSelORcJ azGJ0kpObf:(UIFont*) azGJ0kpObf {
- NSLog(@"NqmiERkLK5u47jIgOD");
- NSLog(@"Vjx75GKNJIErD");
- NSLog(@"JlXySL5YfEKM6wp9vikRDGmoOxC1VABZFenqNH38");
- NSLog(@"EL8abQS9ZuPiIDfe");
- NSLog(@"v7gfC2AR53EiI8xYUeZO");
- NSLog(@"sdLpDWqxoT16ImN4AQGljZJE9B5YOzf2FC8ny");
- NSLog(@"I7xEwBz2yZ6VeJicMmQno");
- NSLog(@"hWaq6C4efZ");
- NSLog(@"uzg1IlCYePTWUqs5nvJ89m6Df3yxBXphEAt");
- NSLog(@"z7S0VRLjZAra");
- NSLog(@"LbG3pwuXBEWs0NKT8kJ1yVRQa76A");
- NSLog(@"HnMlPBpAqrWI4eb0o7FXdK9Vfmgza");
- NSLog(@"cHgQSUuPy0oh3JzMdTK1nfRFkG28aLD4VAqZtpO");
- NSLog(@"6v3OCYGxmKMpNBSf9I5DZRhXzAWnHQ4P7LcreT8s");
- NSLog(@"jOTZBmnc3PuW5UYaQr6xASHC2FeRJXKEpyq");
- NSLog(@"Vitz9nKqZNoS840x5vL3");
- NSLog(@"TzyjFwvOt63HEeoxhD4rnbmMiBpuUJa85W0sqZ");
- }
- -(void)ai3vUtS:(UIColor*) ai3vUtS atYcbSlU:(UIWindow*) atYcbSlU aSVfFW:(UIFont*) aSVfFW a7C9G84tab:(UIBarButtonItem*) a7C9G84tab aCb17:(UISearchBar*) aCb17 akPRlHu:(UISwitch*) akPRlHu akRI1:(UIActivity*) akRI1 aVtQp4:(UIFontWeight*) aVtQp4 aCgySXhpd:(UIMenuItem*) aCgySXhpd aKeQGHI:(UIAlertView*) aKeQGHI aSF7VYs:(UIApplication*) aSF7VYs aNDgzatI:(UIBezierPath*) aNDgzatI aTgBX:(UIBarButtonItem*) aTgBX a0Vwp26GC:(UIControlEvents*) a0Vwp26GC a1nXlywMJhL:(UIViewController*) a1nXlywMJhL {
- NSLog(@"hFAOIsPVUjdq9Yal0ZTi3n4e");
- NSLog(@"YOFgQCpEoa");
- NSLog(@"QWhA38H5ICcFzYRgyqutMDLldipn7ZEGr0USo");
- NSLog(@"BUrQeKyzlSfHYEkoDwmu8CdR");
- NSLog(@"Mj7UbsHfmG0O1XFLK8plYq");
- NSLog(@"wxQt9N652RZy08zqn");
- NSLog(@"AFJ4sPHt0di1WkQ7qvuG");
- NSLog(@"qOsojFaVegEbR5If1upiS6Dk");
- NSLog(@"l4iwK5qzY2b3");
- NSLog(@"y8FLSbkExczlf");
- NSLog(@"i0Rf1FhI8HKg9VDu");
- NSLog(@"5BqwJtKNaCvdY9S1A");
- NSLog(@"X58u1mIOhnboQPe4vC2ZqGAy");
- NSLog(@"vwhWuOndH149");
- NSLog(@"pqWk9iAEY6LnBrfNxuRbJUtmQlywF08Zs");
- NSLog(@"PmQcEk2CbhzXnBJeG16ZaUgAy");
- NSLog(@"MPTEv19kXxgf4U");
- NSLog(@"7YWcFwqzEV");
- NSLog(@"4W6A9JQN8tUoeScEHraYBiVKpFIlugGM0OPsZ");
- NSLog(@"wZzF7Kmf46lNBdYuPDAIgWQo");
- }
- -(void)aqF4bErRNW:(UIVisualEffectView*) aqF4bErRNW abGa4PO:(UISwitch*) abGa4PO adG3LOC1R:(UIDocument*) adG3LOC1R azLIvdte:(UIMotionEffect*) azLIvdte ateYUd3p:(UIKeyCommand*) ateYUd3p aTOnx:(UICollectionView*) aTOnx aTbfP:(UIEvent*) aTbfP aSlDY:(UIImage*) aSlDY aylPF:(UISwitch*) aylPF a8A6PyQjoW:(UIActivity*) a8A6PyQjoW ayeJM:(UIFont*) ayeJM a07CKMul9:(UIInputView*) a07CKMul9 aF4VWN5J:(UIControl*) aF4VWN5J aGvUJrwD:(UIUserInterfaceIdiom*) aGvUJrwD {
- NSLog(@"IfxOpDTLl6nQU7iqV4t2");
- NSLog(@"mzUa3Y9CPqJSsLp0jfNyoZdVIFb5kHDQtnwG68Ov");
- NSLog(@"QJVbdUI4gnwWBqzj6O1vhH8oZxt0E");
- NSLog(@"osr7C5lmRGuyW9AYL0Pq3zdgEwvbFt4peN6h82MD");
- NSLog(@"tNUBwgPDpz9");
- NSLog(@"0eCjfXbQmUk");
- NSLog(@"nz7W0pgNxFsYo9H2Ac4VtbUIdwOmGR1DKTM");
- NSLog(@"AXT6BneEwR3");
- NSLog(@"YJomue7W4NxUkZIwlLCjHrGnTzM9Qi");
- NSLog(@"o4jy1lhYUCHPJEtzA79e");
- }
- -(void)az6Qyk7oXxj:(UIImage*) az6Qyk7oXxj a6DQg:(UIInputView*) a6DQg aev07AacUr4:(UIEdgeInsets*) aev07AacUr4 a9GwSEMRuvg:(UIButton*) a9GwSEMRuvg azuPGWFg:(UISearchBar*) azuPGWFg acG0usXHPF:(UIDevice*) acG0usXHPF aODqWL:(UIFont*) aODqWL aOIoEcyJi:(UIApplication*) aOIoEcyJi auyBz1:(UIMenuItem*) auyBz1 aXu53ai:(UIRegion*) aXu53ai aVqCK:(UIBezierPath*) aVqCK abBof3h:(UIViewController*) abBof3h aOFLua:(UITableView*) aOFLua aRkzVJB:(UIImage*) aRkzVJB a42rZ7XW:(UISwitch*) a42rZ7XW aAy4khZ:(UIMenuItem*) aAy4khZ {
- NSLog(@"gJqtldCAsMQm54o0Zz27cbpfYR8GUS3w9Tky");
- NSLog(@"wDEjiHTPxSlgnrI6zs30G");
- NSLog(@"MhBgG2s7OnyFEIS3ZlutAmNxjWXrCVTa1d8Yc9k");
- NSLog(@"2qLGnDxVCQH3yz6Bklhu1Imi");
- NSLog(@"kW2mArsdn0zXYg9Lw6CfIBi4oJRqVNOhPTpEK");
- NSLog(@"lwHdy28Ngn4fF7hQY0KWbCJqBLaTAvtZP9I");
- NSLog(@"EQO0q4v5mWG");
- NSLog(@"wxF5s4JjKGIkAQdPy6ro");
- NSLog(@"dg6M0aPqbIzHpouVy5w8GrskLcNOXn9imx7Ah1");
- NSLog(@"YVlSGh814EgWI");
- NSLog(@"ufFqX34zhWRaiC");
- NSLog(@"2htsFpcubC6xdKyg8kYXWPnl3m1NQwrBUzf");
- }
- -(void)a1she:(UICollectionView*) a1she adNMI1g03E:(UIWindow*) adNMI1g03E aGUOM:(UICollectionView*) aGUOM aFVan04e:(UIControlEvents*) aFVan04e agZMy:(UILabel*) agZMy ashJpr9bXkO:(UIFontWeight*) ashJpr9bXkO aTHI0VZMP:(UIWindow*) aTHI0VZMP aqbOadsm2:(UIFont*) aqbOadsm2 a8z9TPSrlNA:(UIDocument*) a8z9TPSrlNA a2IJrB:(UIButton*) a2IJrB aimTs:(UIEvent*) aimTs {
- NSLog(@"j86ZzXNWqL");
- NSLog(@"bQkmvZAxVN7Mg");
- NSLog(@"Wwo9qymPEhpk2N0Y1XgCxZJ");
- NSLog(@"o82ACmPU0ILxlh569VWYrf7wc3JKse");
- NSLog(@"ECkvNItzWLqgyfD76VcliTRjSnh3w8uYFaBO");
- NSLog(@"gtHbYXdmDyK");
- NSLog(@"z27BeYQKZNOrAS1Hk");
- NSLog(@"Z94kr78czCShFvjKLJg3HG");
- NSLog(@"c6jd8utYFGLlesnaoKPTh");
- NSLog(@"MJeodXn3xkV7mjbl8pagEDcFSUQ");
- NSLog(@"wQuyYKxln4X");
- NSLog(@"5Isp6wPU2oO");
- NSLog(@"QyGr09devoKiMmaflq52LDnWJz3s8S7FOXuBUCjR");
- NSLog(@"wXIYpc5jmB81CrQMVKxFedlnfEURSGt");
- NSLog(@"p0cJKbuUqZ7D4");
- NSLog(@"GLFC6TgBm2hq7rRj");
- NSLog(@"82P0wHLo9nRyYO");
- NSLog(@"wRivT7DNUoGfh21W45czJHAaejg6S8QOmqC");
- }
- -(void)aVPInEwY:(UIButton*) aVPInEwY a9zA2w85KV:(UITableView*) a9zA2w85KV aA5xNfV4:(UIDocument*) aA5xNfV4 aTcNwev8mI:(UIImage*) aTcNwev8mI awkY0dezas:(UIAlertView*) awkY0dezas aMNBtq:(UIRegion*) aMNBtq aKhZ2bJm:(UIFont*) aKhZ2bJm auSh7xX21Z:(UIImage*) auSh7xX21Z aqxGI6K:(UIMotionEffect*) aqxGI6K aIY1d7l6Nm:(UIFontWeight*) aIY1d7l6Nm agwIBrFluUq:(UIControlEvents*) agwIBrFluUq aHcKBqk:(UIBarButtonItem*) aHcKBqk {
- NSLog(@"CQMHnuVBwXORv3tx8KAYj2");
- NSLog(@"fZSkEJ0B79sRULvahiqTo8wGdKPe5txpzN");
- NSLog(@"TPAF2aiuEGp0gZ68NkCxHe5ntI");
- NSLog(@"ic5CnDZF3hLJrs7HkKx8z0ljPGQBMI");
- NSLog(@"tL0WxpUf2gbeyDo");
- NSLog(@"SH7v29ILAXpf");
- NSLog(@"z6psnly83NGRQx7hOWo2CDvEe1Z");
- NSLog(@"3l0fNAJ7VwjcTXaySqik4shCPYeUWLHD6zonMr");
- NSLog(@"fIdNCm04erE2Jyhz8q3c");
- NSLog(@"WZuqwEOr51oS7xDH0UbasILc4");
- NSLog(@"SMHmavjKcTNPWBY");
- NSLog(@"nkPmiDMYXZ8Vd7gl0OLSzp");
- NSLog(@"muYGOXtbFsci");
- NSLog(@"qRNBiyQxc38u5Mh0YI6OzjJloSFKa4Zw");
- NSLog(@"0k7oNqgYDzF9HQ1VntW");
- NSLog(@"m1O0G23sCcRi5vPj6wxbLeBMqAWpkuSHIEJXzZ7D");
- NSLog(@"AJQj78F5LgPyH34oOalr0zZqiB");
- }
- @end
|