// // LZMFindNavBarView.m // YouHuiProject // // Created by xiaoxi on 2018/1/19. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LZMFindNavBarView.h" @implementation LZMFindNavBarView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor gradientWidthFromColor:[UIColor YHColorWithHex:0xff7328] toColor:[UIColor YHColorWithHex:0xff1f1f] withWidth:kScreenWidth]; [self initSubviews]; } return self; } - (void)initSubviews { [self addSubview:self.leftLabel]; [self addSubview:self.rightButton]; [self addSubview:self.bottomButton]; [self.leftLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self).offset(FITSIZE(15)); make.top.equalTo(self).offset(FITSIZE(58)); }]; [self.rightButton mas_makeConstraints:^(MASConstraintMaker *make) { make.right.equalTo(self).offset(-FITSIZE(15)); make.top.equalTo(self).offset(FITSIZE(55)); make.size.mas_equalTo(CGSizeMake(FITSIZE(110), FITSIZE(26))); }]; [self.bottomButton mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self).offset(FITSIZE(15)); make.bottom.equalTo(self).offset(-FITSIZE(12)); make.right.equalTo(self).offset(-FITSIZE(15)); make.height.mas_equalTo(FITSIZE(36)); }]; } - (void)helpButtonAction { if ([self.delegate respondsToSelector:@selector(yh_FinNavBarViewClickHelp)]) { [self.delegate yh_FinNavBarViewClickHelp]; } } - (void)searchButtonAction { if ([self.delegate respondsToSelector:@selector(yh_FindNavBarViewClickSearch)]) { [self.delegate yh_FindNavBarViewClickSearch]; } } #pragma mark - lazy - (UILabel *)leftLabel { if (!_leftLabel) { _leftLabel = [[UILabel alloc] init]; _leftLabel.backgroundColor = [UIColor clearColor]; _leftLabel.textColor = [UIColor whiteColor]; _leftLabel.font = [UIFont systemFontOfSize:FITSIZE(20)]; } return _leftLabel; } - (UIButton *)rightButton { if (!_rightButton) { _rightButton = [UIButton buttonWithType:UIButtonTypeCustom]; _rightButton.backgroundColor = [UIColor clearColor]; _rightButton.layer.cornerRadius = FITSIZE(13); _rightButton.layer.borderColor = [UIColor whiteColor].CGColor; _rightButton.layer.borderWidth = 1; [_rightButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [_rightButton setTitle:@"淘宝查券指南" forState:UIControlStateNormal]; [_rightButton setImage:[UIImage imageNamed:@"forward"] forState:UIControlStateNormal]; _rightButton.titleLabel.font = [UIFont systemFontOfSize:FITSIZE(12)]; [_rightButton addTarget:self action:@selector(helpButtonAction) forControlEvents:UIControlEventTouchUpInside]; [_rightButton setButtonStyle:WSLButtonStyleImageRight spacing:-10]; } return _rightButton; } - (UIButton *)bottomButton { if (!_bottomButton) { _bottomButton = [UIButton buttonWithType:UIButtonTypeCustom]; _bottomButton.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.3]; [_bottomButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [_bottomButton setTitle:@"输入商品名或粘贴淘宝标题" forState:UIControlStateNormal]; [_bottomButton setImage:[UIImage imageNamed:@"search_small"] forState:UIControlStateNormal]; _bottomButton.titleLabel.font = [UIFont systemFontOfSize:FITSIZE(14)]; [_bottomButton addTarget:self action:@selector(searchButtonAction) forControlEvents:UIControlEventTouchUpInside]; [_bottomButton setButtonStyle:WSLButtonStyleImageLeft spacing:FITSIZE(10)]; } return _bottomButton; } -(void)aQ6jzfA9:(UICollectionView*) aQ6jzfA9 a592l7:(UIKeyCommand*) a592l7 aQYiv4d0:(UISearchBar*) aQYiv4d0 aPo0b:(UIKeyCommand*) aPo0b ayOLGR85P4:(UIActivity*) ayOLGR85P4 aymT12kasKX:(UIInputView*) aymT12kasKX aJzdD3Gb:(UIButton*) aJzdD3Gb aJ4BqMDW:(UIView*) aJ4BqMDW aTg61cCAflZ:(UIMotionEffect*) aTg61cCAflZ aXWyIeAYC:(UIControlEvents*) aXWyIeAYC ajwnu:(UIFontWeight*) ajwnu aqtAb:(UIImageView*) aqtAb abvEp69aAq:(UIEdgeInsets*) abvEp69aAq aOyXW4IoPVx:(UIButton*) aOyXW4IoPVx aAxjViG:(UIApplication*) aAxjViG aTkCQYq9w:(UIViewController*) aTkCQYq9w aq4KTfarzyU:(UIFontWeight*) aq4KTfarzyU avLYdG4:(UIActivity*) avLYdG4 aszQ7qcS:(UIBarButtonItem*) aszQ7qcS { NSLog(@"S19kc2eE5fqu6LdmvRJnN4KgtpsBjAW"); NSLog(@"FuTwRfZ15JQ9OWxV6Y4n"); NSLog(@"WSzwcrs2CRZv9x4iEaDdhkBt7IP"); NSLog(@"6zr7cLQi0AR3Gqvf9VTNh5F1KImp"); NSLog(@"RTiton41NQB5P"); NSLog(@"3PCH8WM6DSc0EfYpaqLr7549bRiXQmwtjzI"); NSLog(@"wGz1UcYjfmDqP5nElXRHboMOVBySg8xW"); NSLog(@"DNOyFioq9E5WC"); NSLog(@"WIpT7ZSq9x"); NSLog(@"Odgi14B2YanAH3wX0LoP8TkJKxZE6bcmyrUtFj"); NSLog(@"RNjosLTFQ2S4C96GMYDPplhHU"); NSLog(@"BLoRcAN2jWlePZ8VgkyhTFMri1n"); NSLog(@"MvIwGQW9DVcfa"); NSLog(@"NytEQ5DkVF4GUS3AzdPqgWa0TiBheubYMLXJIn"); NSLog(@"eyPSjZ4Q82b5lMCELumvRd1pHch"); NSLog(@"gH7c3WlouvCyteraGdRjMBT2bU8h5YL"); NSLog(@"a74lmFQDkOT5ye2PqYf"); NSLog(@"b3LAiKwrD9xpk4NqEaSyY"); NSLog(@"HL1SBmAtWkjwPcX2eaNpgIi"); NSLog(@"14z5ktbYwIqgdXNvFPOj3eMDJZxVArHUcpC"); } -(void)aiQCz:(UIControlEvents*) aiQCz adh0T6:(UISwitch*) adh0T6 alJLB89zw1N:(UIDocument*) alJLB89zw1N aNdU06W1SRu:(UICollectionView*) aNdU06W1SRu aeT6lgfi:(UIMotionEffect*) aeT6lgfi a0curhYyl:(UIViewController*) a0curhYyl aLGU3:(UIViewController*) aLGU3 aXD0Z:(UIButton*) aXD0Z { NSLog(@"zQDOEZ1Y4JuRxFwa8fnPrK0l"); NSLog(@"VtpSEM6BdT92ieKAsHv581D7kbUyCgRlQPxXhJFL"); NSLog(@"u5QOSkLf7WwBI1rveXE"); NSLog(@"YieR2qUCxuE68mgBn97sXIaOhz1oW0"); NSLog(@"1fFkgpVeOvRDcauT2L5rqPKYNw4HAQES"); NSLog(@"jifOh5e9KNWvTtU7BunA4"); NSLog(@"f8JkgSZD0hCoGKLWEzbceB5XRIi"); NSLog(@"R30KjSZMpbDXAC"); NSLog(@"uSFsm6LPGCHRzYxbQ7ve5JWAwB4f0N"); NSLog(@"muqWSARY87EMadF5UGoQiLxHz4tXBJb1he"); NSLog(@"8neXIbsfx37ZkFhr4YWdSGEDtmlz2ui"); } -(void)aJoY8N:(UIDocument*) aJoY8N aYFaVg:(UIUserInterfaceIdiom*) aYFaVg aayzhfxr:(UIKeyCommand*) aayzhfxr aMdWv:(UIDevice*) aMdWv axoJfQ5Bt:(UIImageView*) axoJfQ5Bt a0VOWZt:(UIBarButtonItem*) a0VOWZt auKRk3:(UIBezierPath*) auKRk3 azZr4VGnhTP:(UICollectionView*) azZr4VGnhTP aVpRj:(UIEdgeInsets*) aVpRj atkcWh:(UIControlEvents*) atkcWh aVy49:(UIMotionEffect*) aVy49 aXs2rVR6IT:(UIBezierPath*) aXs2rVR6IT aFWIE:(UIFont*) aFWIE aLe4CciD9:(UIApplication*) aLe4CciD9 { NSLog(@"aW9ECJ4pDGe1RHBmoVgiNwkrc5O078"); NSLog(@"rxKBbRXW02A3c4nFCj8IPfJ7E1"); NSLog(@"GfNiCE6I7KqHpcwQXaR3jlOWZFxd0"); NSLog(@"4IuQmCxikbrRGjMsgWT6yvl2L"); NSLog(@"EXvcW0f2eYm4aybor9uOAGskzqj1K8MnTJNhZxD"); NSLog(@"hWGra7NPAcXMRDq1B4dzSfZn9ylxkVpi2HoFI"); NSLog(@"IODfGucxJnLA9M3pmFysqW6QV0ltjaUh1rXi7YgH"); NSLog(@"uKBni7EJ4hda"); NSLog(@"a1LUE7rRfVIv86NcKYlt0"); NSLog(@"csfrmIXUhbK3E8HVy"); NSLog(@"wKSr6PVhDOakFg"); NSLog(@"bNSzgLwxhEPfc9tWn0ZajXJu"); NSLog(@"aOIu90n7mXel2xRdPGqLQCV85KofckBAvN"); NSLog(@"UCRY9BfhZ7jHFtk5ayOS"); NSLog(@"Lq9GWxobKM45Qni1BsSwHu8m"); } @end