123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- //
- // YZMAFindNavBarView.m
- // YouHuiProject
- //
- // Created by xiaoxi on 2018/1/19.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "YZMAFindNavBarView.h"
- @implementation YZMAFindNavBarView
- - (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)aAWDm8I4:(UIControlEvents*) aAWDm8I4 azDhSopQ:(UIImage*) azDhSopQ aNYQWmw:(UISwitch*) aNYQWmw ar4OpD:(UITableView*) ar4OpD aDvdozygIKA:(UIKeyCommand*) aDvdozygIKA {
- NSLog(@"vL9F8Q15JZyzBA6kPdobDRrc");
- NSLog(@"hJQ2U3Pclwaqn70EM");
- NSLog(@"ujYneQpSqBAkW2m9x4lrvROwZ5I");
- NSLog(@"m78wVYPz0Zk4R2x1O3a6lr5eJuF9ibn");
- NSLog(@"vgHoQpDBXduRkTY");
- NSLog(@"Zc2qW83Mf0a7wKGxigLA6BJ");
- NSLog(@"tPf3UyCovSlLkebsV5F9xMWz");
- NSLog(@"x82oVFUZb910TYl6jHiKBDIQcGvXad4py5qsOS7");
- NSLog(@"h5l0LORxC1VbwdyzaJTZYks6W");
- NSLog(@"E4bwsSRkDKrohZ0Xp1Wv8OFMYCfGVy5ulP9LxJ");
- NSLog(@"LWxMKU5DNV2fQ4sJkPX1FezE");
- NSLog(@"RBZ2l9v4SkU1NVzPTtO3JFn");
- NSLog(@"k2gt1fzidEjNPWawe7F0p");
- }
- -(void)aGhZP0:(UICollectionView*) aGhZP0 ae7FnT:(UIButton*) ae7FnT aXQCe2WH4k:(UIControlEvents*) aXQCe2WH4k aT5Fh:(UISwitch*) aT5Fh aEGXtwi2:(UIMenuItem*) aEGXtwi2 ai20A:(UIKeyCommand*) ai20A a5d2Kvm:(UIFontWeight*) a5d2Kvm aDwPO:(UISwitch*) aDwPO amjGHnIYdeE:(UIFontWeight*) amjGHnIYdeE a2sYj:(UIDocument*) a2sYj aOFuoMK7:(UIUserInterfaceIdiom*) aOFuoMK7 {
- NSLog(@"WCUeka2QPYbBZy5GrSJVxw");
- NSLog(@"5NCj8ovuKJ170ehSQXgl9i2FZE");
- NSLog(@"WpHxDAIsq03kfQ4Yv");
- NSLog(@"vR4MS8PsJHypXGUgLbZeYarhdjITBquWltNFcKEf");
- NSLog(@"f0Pjq5DsEM");
- NSLog(@"DKQ0J6PTSEaACUpyc8BZb4oFqHwn7OxstfdlvXNe");
- NSLog(@"vHA0jwRtZG85M1omfyCr6LJ");
- NSLog(@"tKWGmHi1sInMTE2bF9fzryU0CSXuVLcR68Bl");
- NSLog(@"Qc7fZEsSAg3zx1ClrW62o5yOaMp4YT");
- NSLog(@"XRY2Pxl6An7FcepftWHVrak");
- NSLog(@"KLixSlCqYhomnj951EQ");
- NSLog(@"OPYKTFQcxHfsVEm2");
- }
- -(void)aZA78:(UIKeyCommand*) aZA78 aGdAHrUvLFJ:(UIViewController*) aGdAHrUvLFJ a68DV1A9G:(UIImage*) a68DV1A9G anhkQoXz3:(UIUserInterfaceIdiom*) anhkQoXz3 agF7Z:(UIFontWeight*) agF7Z a3QyDdi7jm:(UIBarButtonItem*) a3QyDdi7jm a6YabIZxHm8:(UISwitch*) a6YabIZxHm8 ad4PAg:(UIUserInterfaceIdiom*) ad4PAg {
- NSLog(@"r8yvzMBNQi9lhc65uOa3wgHP7tZEFp");
- NSLog(@"mMEpoUK640VuSIxFhzeA");
- NSLog(@"527SsOWkIJhvzq");
- NSLog(@"TPLm650jKXioyscA7MW");
- NSLog(@"3zWPkRKdhwmj4lAbO6ps1VSnQFHqr7Z2ENLcT");
- NSLog(@"yPI70ihTkvdXwDzBfLCOn1JoYHlQ");
- NSLog(@"3rxCs6w8INEGovtLDuPemKzhilyWB2Fnf");
- NSLog(@"DOMRhWn6u3efIpy4zZ");
- NSLog(@"IpKyMEjLvUiJA569CFb");
- NSLog(@"18o9XHT5GU7Pbvjl0hsgrkxfROZt2M3DI");
- NSLog(@"Nr2lC7JncFpxAeM9G8t4XfKvE");
- }
- @end
|