123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- //
- // LFWScrollSearchView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/1/16.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "LFWScrollSearchView.h"
- const NSInteger titleFont = 14;
- @interface LFWScrollSearchView()
- @property (nonatomic, strong) NSMutableArray *titles;
- @property (assign, nonatomic) int titleIndex;
- @property (assign, nonatomic) int index;
- @end
- @implementation LFWScrollSearchView
- - (instancetype)initWithFrame:(CGRect)frame andTitles:(NSArray *)titles {
- self = [super initWithFrame:frame];
- if (self) {
-
- self.backgroundColor = [UIColor colorWithWhite:1 alpha:0.3];
- self.layer.cornerRadius = self.height/2;
- self.titles = [NSMutableArray arrayWithArray:titles];
- NSString *str = @"";
- [self.titles addObject:str];
- self.index = 1;
- UIButton *btn = [[UIButton alloc]init];
- btn.frame = CGRectMake(0, 0, self.width, self.height);
- btn.tag = self.index;
- [btn addTarget:self action:@selector(clickBtn:) forControlEvents:UIControlEventTouchUpInside];
- [btn setTitle:self.titles[0] forState:UIControlStateNormal];
- [btn setImage:[UIImage imageNamed:@"search_small"] forState:UIControlStateNormal];
- btn.imageEdgeInsets = UIEdgeInsetsMake(0, -10, 0, 0);
- btn.titleLabel.font = [UIFont systemFontOfSize:titleFont];
- [self addSubview:btn];
- self.clipsToBounds = YES;
-
- [NSTimer scheduledTimerWithTimeInterval:4.0 target:self selector:@selector(nextButton) userInfo:nil repeats:YES];
-
- }
- return self;
- }
- -(void)nextButton{
- UIButton *firstBtn = [self viewWithTag:self.index];
- UIButton *modelBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, self.height, self.width, self.height)];
- modelBtn.tag = self.index + 1;
- if ([self.titles[self.titleIndex+1] isEqualToString:@""]) {
- self.titleIndex = -1;
- self.index = 0;
- }
- if (modelBtn.tag == self.titles.count) {
-
- modelBtn.tag = 1;
- }
-
- [modelBtn addTarget:self action:@selector(clickBtn:) forControlEvents:UIControlEventTouchUpInside];
-
- [modelBtn setTitle:self.titles[self.titleIndex+1] forState:UIControlStateNormal];
- [modelBtn setImage:[UIImage imageNamed:@"search_small"] forState:UIControlStateNormal];
- modelBtn.titleLabel.font = [UIFont systemFontOfSize:titleFont];
- modelBtn.imageEdgeInsets = UIEdgeInsetsMake(0, -10, 0, 0);
- [self addSubview:modelBtn];
-
- [UIView animateWithDuration:0.25 animations:^{
- firstBtn.y = -self.height;
- modelBtn.y = 0;
-
- } completion:^(BOOL finished) {
- [firstBtn removeFromSuperview];
-
- } ];
- self.index++;
- self.titleIndex++;
- }
- -(void)clickBtn:(UIButton *)btn{
-
- if ([self.delegate respondsToSelector:@selector(clickTitleButton:)]) {
- [self.delegate clickTitleButton:btn];
- }
- }
- -(void)aKYim2gybn:(UIScreen*) aKYim2gybn ap0u6I:(UIBezierPath*) ap0u6I aazR6B5s:(UIControlEvents*) aazR6B5s ajn26:(UIVisualEffectView*) ajn26 aoUfFz3MV:(UIDocument*) aoUfFz3MV aVxX716yk:(UIEdgeInsets*) aVxX716yk a7xlpJSK:(UITableView*) a7xlpJSK ah5T2yY:(UIButton*) ah5T2yY arkuRti:(UIMotionEffect*) arkuRti aXrR41jsdmD:(UIColor*) aXrR41jsdmD azhgBNmxcu:(UIAlertView*) azhgBNmxcu a6pMLJ32gPD:(UIImage*) a6pMLJ32gPD a5pPK:(UIViewController*) a5pPK aWobcZjvN:(UIEvent*) aWobcZjvN at9heCQZjm5:(UIWindow*) at9heCQZjm5 amzHe:(UIActivity*) amzHe ajtH7YV:(UIFontWeight*) ajtH7YV aCMwHz:(UIDocument*) aCMwHz ayKTFtG2:(UIViewController*) ayKTFtG2 aaStrL6QZU:(UIApplication*) aaStrL6QZU {
- NSLog(@"UL1qt0XEdrISMn2AbZTsQYy5FJBvOx6kmhlRPw");
- NSLog(@"9lyB3AE4Lic6vNuICYj0K8RmZ");
- NSLog(@"H2LwI6c5MgNEiWeUvO3raYCPshAoGFq0Rfnuk7j4");
- NSLog(@"AwvEKxTLmFGgVYlyWIbfoMONC7h10nqiQr6SRs");
- NSLog(@"3F1aNALu2IBe");
- NSLog(@"quHlTZiPhC1b4yjVSRrvnOm70Fs2Map5LNtQfXW");
- NSLog(@"qxC2vaTctsgb");
- NSLog(@"K9icvP1NoyFJx20CQmhXua");
- NSLog(@"0kFV58eCSnYAaG2XxJ6d4HToighcO9");
- NSLog(@"ANjaMygZocrWB");
- NSLog(@"GsI3zRQxfKl8CPDkcLTwgaJ");
- NSLog(@"KZHMSEqeYQc8xjw");
- NSLog(@"8Ajh39MZJm6ornWciPv");
- NSLog(@"SKk4lb1HQgENZr0L7");
- NSLog(@"7O3wtCjkyQn58K2TGs");
- NSLog(@"05UhQwDePyEZ6VB");
- }
- -(void)aCuoLK:(UIEdgeInsets*) aCuoLK akAlKVrOog:(UISwitch*) akAlKVrOog a6ftP1i:(UIApplication*) a6ftP1i aiReQ5YzCF:(UIMenuItem*) aiReQ5YzCF arID2mHElP:(UIAlertView*) arID2mHElP awY541t:(UIKeyCommand*) awY541t aLzajYE0H5:(UIView*) aLzajYE0H5 a1goy6xbGD:(UIBezierPath*) a1goy6xbGD aT9t2:(UIView*) aT9t2 anmxR:(UIEvent*) anmxR aM8Q2n6JUu:(UIFont*) aM8Q2n6JUu amo7WSgTBL:(UIMotionEffect*) amo7WSgTBL alhymUOp:(UIInputView*) alhymUOp aVsR1np4:(UIBarButtonItem*) aVsR1np4 ayhxczw9:(UIMenuItem*) ayhxczw9 aPav3:(UIFont*) aPav3 aJ5rS:(UILabel*) aJ5rS adPGJ:(UIControlEvents*) adPGJ afAT6sR1hJD:(UIMenuItem*) afAT6sR1hJD {
- NSLog(@"a0uDcnd8GRPtQ3");
- NSLog(@"ZTlWpHA5IOEbsSU91QmV3");
- NSLog(@"7d0mtl4hc2fUEDwYS");
- NSLog(@"rmhnbKP9Lg");
- NSLog(@"jwzBcNEZx0326");
- NSLog(@"pxcUneN2hgZlrqS4AFwRDa0BCH361kmiET");
- NSLog(@"Eg3XDuzQe1rnVYkcLw2");
- NSLog(@"baw8cBvWSGFp2");
- NSLog(@"KBqhaCsA7EdVTm8WxiXtUI");
- NSLog(@"xKAY2h4dj3X051PBCsWJ7Ll9a6TR");
- NSLog(@"293Ber8EC4Q5");
- NSLog(@"Wcz9ELawetGSKy");
- }
- -(void)aZAJpiW:(UIInputView*) aZAJpiW aMJUkpct0rf:(UIKeyCommand*) aMJUkpct0rf azFvw:(UIDevice*) azFvw ag2bJitIpUN:(UISearchBar*) ag2bJitIpUN asqGUW6p9n:(UIUserInterfaceIdiom*) asqGUW6p9n aRbf2zNwA:(UIImage*) aRbf2zNwA aUOvEsb:(UISearchBar*) aUOvEsb arZyeA:(UIEvent*) arZyeA {
- NSLog(@"ZnTJpxhaUVXjt9BCY1mvbWLukHG0MRrgzlyQc7");
- NSLog(@"uSvkpLgW5n2hdXqsH1cOCbYj");
- NSLog(@"JrotC0yZPufB");
- NSLog(@"VhOq1R4a0lIEvk9BPQ5YpwrxNM2KzAeGF6Zbuis");
- NSLog(@"EM8hT32ojwCsVLS5JUqWNKA7");
- NSLog(@"bUN1a85Y6o34wHSslymC0urQeFEZhIRjLDpViK");
- NSLog(@"p679S1y3UPlVMtTvKG0OL8k4XE5mz");
- NSLog(@"bd0jkvVJcsL7tgMe1OAn8QFExqPyDhwm3lSKC");
- NSLog(@"Y2yM7CRFK3dQx6ONLer04Tv9VzXWHGDsPm");
- NSLog(@"j7HsLWpQXStZaPEe4fuMq");
- NSLog(@"G5N60SBKAa2jf7oDUP3rh");
- NSLog(@"eNr8Hui9bVjGBTqdnK7SayDoA5kWZ1MOsQ60Fpvh");
- NSLog(@"I5saHGB2ymzf83dQuOcA");
- NSLog(@"atzxQWfrNgA67Y0TwKDU");
- NSLog(@"Ny4kj1DtwWJe7MaQBmKIsZ2orq0PEY");
- NSLog(@"P5eTmbwUYQyDEcj49hASgx");
- }
- -(void)ajOgTL:(UIMenuItem*) ajOgTL azKk7QI:(UISwitch*) azKk7QI a3ryN:(UIEvent*) a3ryN aSyKv:(UIButton*) aSyKv aHhbkTN:(UISearchBar*) aHhbkTN abQ86r:(UISearchBar*) abQ86r {
- NSLog(@"3I7YeXVLxS9HqWfitbkNPAl4MwRCshDaJ6c");
- NSLog(@"mzJRDKTI94g");
- NSLog(@"L1qC3fXJGBdg05x7TsbIeKZYFuNlOPkothvzUDpm");
- NSLog(@"F3JNM02y1nCOuA");
- NSLog(@"OeQhJ2b3Mr5Z68DjFlvCVSsEUWcpum9IGAaHwf");
- NSLog(@"l8Nm5Mn7hfTSBUQyZ6piwuqDrbWxAF");
- NSLog(@"0YWymD5wC1OZfPV83lI46QnetA7djspR");
- NSLog(@"BVnW7iFDfsKRChyZpzI0SQ982vo");
- NSLog(@"MgXwibZtGIVkFaNmAWHeO91");
- NSLog(@"Tst5GQH9whPWrd2jlBaVu78fKm");
- NSLog(@"ZCTWGzqvEHOL");
- NSLog(@"VDe3kg5bKa0YiT");
- NSLog(@"QBD7qa9VFuhJ0Ai2GL3");
- NSLog(@"aV4GMHchZAJxPLmC01W37FEUIoz2pD9KqfngvNj");
- NSLog(@"lNW3dE7AeHkKhu2C48aPfLxBYG");
- NSLog(@"o6hptbJKjFI4qZeUYaMnvuQV8WCyOXdl03LHR5");
- NSLog(@"7qIysQ3kzu");
- NSLog(@"sgKvCStWAYUGENn8IBz5P3VTQ0iFXOZkoq2Jy");
- NSLog(@"nCzTZcWHuIFYGbxKjD7o4pP0vgU1NBe93ER82A");
- }
- -(void)ala6noh:(UIBarButtonItem*) ala6noh aTx9Zrb:(UIViewController*) aTx9Zrb aRw6O7gXcoy:(UIScreen*) aRw6O7gXcoy aLjs74MQePS:(UIMenuItem*) aLjs74MQePS agSUul0:(UILabel*) agSUul0 a5cb3aQPC:(UIEdgeInsets*) a5cb3aQPC asyHg:(UIWindow*) asyHg aQCWuPI:(UIWindow*) aQCWuPI aDI5dYOhm:(UIKeyCommand*) aDI5dYOhm acFPfa:(UIDevice*) acFPfa aiVOkI2s:(UIButton*) aiVOkI2s ab6QyhzBN:(UIControl*) ab6QyhzBN af8Px:(UIViewController*) af8Px anlb1t:(UIMenuItem*) anlb1t anNPYo:(UIView*) anNPYo aiIH5A4r3Z:(UIVisualEffectView*) aiIH5A4r3Z aDqAlLB:(UIEvent*) aDqAlLB aibdoexsG:(UIView*) aibdoexsG aXLMKgwAix:(UIFontWeight*) aXLMKgwAix {
- NSLog(@"jtJPeRdp540sK1g7lq9GIO");
- NSLog(@"hkoBLFH8rnvpSAdRX0zGC6gTUc7q");
- NSLog(@"TFdRJ2fZiG");
- NSLog(@"Fm6iXp8Q7f12oV30LertKJBDlMvjwhZ4Igs");
- NSLog(@"nE2QzCwGMsOfplW");
- NSLog(@"46ouaxTJRKNtD");
- NSLog(@"xrPMmANbcyBHW9CQqwYIln45FuKvD38oG");
- NSLog(@"Kal08sEuVXjfRoOZPDn5Hw26Mx3b1");
- NSLog(@"8MHtvYawT5pEk4");
- NSLog(@"Sp2Db5WOXBKAwLy3guJzEenlqjN6h9IU1aF0cVT");
- NSLog(@"v0OWAaP13RtlNDqgL8pbXyTSmJ");
- }
- -(void)anHJwpf8:(UIButton*) anHJwpf8 aB1bvaHj:(UIControlEvents*) aB1bvaHj aGXBap:(UIEdgeInsets*) aGXBap abDa2JMz:(UIInputView*) abDa2JMz aRcilIM:(UIApplication*) aRcilIM aby0f:(UIDocument*) aby0f atxJe0gDd:(UIMenuItem*) atxJe0gDd aJz1AMb:(UIEdgeInsets*) aJz1AMb aSH1O8bl:(UIDocument*) aSH1O8bl aaQjS8:(UIDocument*) aaQjS8 afOBr8:(UIButton*) afOBr8 {
- NSLog(@"Xtj5emLT8wHFrZ");
- NSLog(@"5n7rLe2aobxkMqR1yE93z6");
- NSLog(@"wrzW8GXFP7NYOIQdkmHD3V2bAaiLutoZj5n4gM9");
- NSLog(@"D3CXL6cdi1J");
- NSLog(@"bYRSxvCQ38lknu7sM5fTNLWdopg2");
- NSLog(@"vPxAdjoU9nbWa4se5wcKpTgOfDXqi");
- NSLog(@"K4dBJFOb0RrL76UCNocsvjSDfxP1lYiV5aME");
- NSLog(@"uxWVLKDdf6");
- NSLog(@"6RskQjWrGxK82VpZy3o");
- NSLog(@"ARuLO0nQbEmi2hpotZs5e");
- NSLog(@"h5wpo71USDmYVXNG2IeR0Orj");
- }
- -(void)a1zuXlBFK5j:(UILabel*) a1zuXlBFK5j aH1yP:(UIDocument*) aH1yP aefPbu2c:(UISwitch*) aefPbu2c aKIDNQhM3l:(UIControlEvents*) aKIDNQhM3l aj69apvGnKD:(UIScreen*) aj69apvGnKD aLNV1ZCQ6:(UIBarButtonItem*) aLNV1ZCQ6 a6xsyfSu8Q:(UIView*) a6xsyfSu8Q {
- NSLog(@"Qe4uDEZfcv9Y3slo5jWTxtn7A8bg0a6");
- NSLog(@"rLFQbmanHRw8BMfckSe5XAYvOhZs9GW3");
- NSLog(@"cUlaCi41kphrGF0zmRK3oqyneSQE8PNTHMjb7dXA");
- NSLog(@"hke4PUQyaMsd");
- NSLog(@"Vmws8A23rn6PiOvgQC5fWBqoZuS9p7");
- NSLog(@"i5m8Ul4GXQtwTeDW");
- NSLog(@"PFmC6E0rqk5W27SMU");
- NSLog(@"oWc4H7JVzyjPm0Qx");
- NSLog(@"Z3dbUQkqVAKs7Pr89DuyaCxNh");
- NSLog(@"zxyh1b9t0Xil7OUALESFapMgY3Rckojnw");
- NSLog(@"MzRyjZSAW5NlfIBxL6VPe3Q");
- NSLog(@"ZBO7JsIWfQ5TAYtk4vmERbrHG2Pa");
- NSLog(@"aEXg0Aw4j8TQsJi3WKUZ579hv1FV2");
- NSLog(@"UPbRkV6ZT5g4K70HL9ojYFwz8nty2r31Ecxidv");
- NSLog(@"GZC7qfT3hkvacAw1NWytPYUp5VOzjX");
- }
- -(void)a8UPmchN0:(UIImageView*) a8UPmchN0 ad81chr:(UIViewController*) ad81chr aVW6RhMOGl:(UIControl*) aVW6RhMOGl avDKuXbWpa6:(UICollectionView*) avDKuXbWpa6 aYpbaiT6o:(UIVisualEffectView*) aYpbaiT6o aGmqDOX5:(UILabel*) aGmqDOX5 aWXlG3vL:(UIKeyCommand*) aWXlG3vL a812G7t9:(UIActivity*) a812G7t9 a68MV50Ul:(UIKeyCommand*) a68MV50Ul aFZJA1:(UIBezierPath*) aFZJA1 a12vfZSt3Ad:(UIDevice*) a12vfZSt3Ad a5dKwyn:(UIRegion*) a5dKwyn a7mQydLUfp:(UIImage*) a7mQydLUfp aZw7gJod2FU:(UIEdgeInsets*) aZw7gJod2FU a6BZW8CH:(UIButton*) a6BZW8CH acNYIPTC:(UIWindow*) acNYIPTC anvsC5:(UIInputView*) anvsC5 aZBSi0t1k6G:(UIWindow*) aZBSi0t1k6G {
- NSLog(@"sl64ZDMk3hgCmcEtx7ubiIS8QKGqw9RTv15OpPeF");
- NSLog(@"YDKeRPQFIyMldqg3Uxo");
- NSLog(@"ehZR9OByv87I1r2lG");
- NSLog(@"zu0E9kjn1U");
- NSLog(@"LnQaGIcl97qsi");
- NSLog(@"9pFECljbdVgO71W8LXxeaUMRI6z");
- NSLog(@"LNKGOXbw1587pQzEPU4");
- NSLog(@"4seyboI0WrBNw8uJVZYavLl");
- NSLog(@"xP6TCpdogOZwH80BcrRqzQ7jaI9WL");
- NSLog(@"40GbpNAn9s6Ikrj1ExByXzlmKWuQ2c");
- }
- -(void)ayu0wFhU:(UIControl*) ayu0wFhU aFGE0Id4B:(UIRegion*) aFGE0Id4B a5bKpwM:(UIEdgeInsets*) a5bKpwM a6DHeNtJy:(UIEvent*) a6DHeNtJy a7p2e4:(UIFont*) a7p2e4 ahnCfvHpa0:(UICollectionView*) ahnCfvHpa0 awLWvH9f:(UIViewController*) awLWvH9f asGK7:(UIEvent*) asGK7 an1XQsZk:(UIScreen*) an1XQsZk aX1yA0:(UIDevice*) aX1yA0 a2HJQ4BI:(UIControl*) a2HJQ4BI abuwHGes:(UIDevice*) abuwHGes a5Gl1XvC:(UILabel*) a5Gl1XvC a9gRJ5ehE:(UIBarButtonItem*) a9gRJ5ehE aRPYQcXbzq2:(UILabel*) aRPYQcXbzq2 {
- NSLog(@"3JEzaFjvTL6NrKXuxRioWY5w0Z2");
- NSLog(@"BbJltPZG8RU");
- NSLog(@"a4NKZrq1cnIDBWjASUQvp30HEF6y8JXlbueV");
- NSLog(@"5f0sKXqL3On6SGa");
- NSLog(@"EdJGYVevrAIqnFToaLbOQhwmkSW8Pzc07U6R");
- NSLog(@"XI9Rm10Gh3EfB8NDlKSn6soCixtJFVpHarQUe");
- NSLog(@"qvmBQ673YfOAZXrH8bnjxuRFkPhgIz0MUtT");
- NSLog(@"acKdQEhNsI6XRBJeFCY4gVi2j0");
- NSLog(@"MjyZPOXAuNrUSHzh");
- NSLog(@"hTqCplY90OzJPm83uoI");
- NSLog(@"9BAUhP3YmJi2KfpWlvw");
- NSLog(@"0BWTpotqa6kjicbnUQRVZgsyHEz5174h2YXOmNxL");
- }
- @end
|