// // YZMAInviteBannerView.m // YouHuiProject // // Created by 小花 on 2018/5/19. // Copyright © 2018年 kuxuan. All rights reserved. // #import "YZMAInviteBannerView.h" #import "WLScrollView.h" @interface YZMAInviteBannerView (){ WLScrollView *wlScrView; } @end @implementation YZMAInviteBannerView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.layer.masksToBounds = YES; [self initSubViews]; } return self; } - (void)initSubViews { wlScrView = [[WLScrollView alloc]initWithFrame:self.bounds]; wlScrView.delegate = self; wlScrView.isAnimation = YES; //是否轮播。轮播设置为NO 或者不设置 wlScrView.isEnableMargin = YES; wlScrView.scale = 0.7; wlScrView.marginX = 0; wlScrView.maxAnimationScale = 1; wlScrView.minAnimationScale = 0.8; wlScrView.backgroundColor = [UIColor clearColor]; } #pragma mark - WLScrollViewDelegate - (NSInteger)numOfContentViewScrollView:(WLScrollView *)scrollView{ return self.dataArr.count; } - (WLSubView *)scrollView:(WLScrollView *)scrollView subViewFrame:(CGRect)frame cellAtIndex:(NSInteger)index{ WLSubView *view = [[WLSubView alloc] initWithFrame:frame Identifier:@"cellId"]; view.backgroundColor = [UIColor yhGrayColor]; view.tag = 1000+index; UIImageView *imgView=[[UIImageView alloc]initWithFrame:view.bounds]; [imgView sd_setImageWithURL:[NSURL URLWithString:self.dataArr[index]]]; [view addSubview:imgView]; return view; } - (void)scrollView:(WLScrollView *)scrollView didSelectedAtIndex:(NSInteger)index{ NSLog(@"点击 index %zd",index); } - (void)scrollView:(WLScrollView *)scrollView didCurrentCellAtIndex:(NSInteger)index{ NSLog(@"现在显示的 index %zd",index); WLSubView *sub = [self scrollView:scrollView subViewFrame:[wlScrView getSubFrame] cellAtIndex:index]; NSLog(@"%ld",(long)sub.tag); NSLog(@"%f",wlScrView.width); if (self.delegate &&[self.delegate respondsToSelector:@selector(didCurrentCellAtIndex:)]) { [self.delegate didCurrentCellAtIndex:index]; } } -(void)setDataArr:(NSArray *)dataArr{ _dataArr=dataArr; [wlScrView starRender]; [self addSubview:wlScrView]; } -(void)argX0cyGY1:(UITableView*) argX0cyGY1 alkcjVG1:(UIWindow*) alkcjVG1 aaT0jxXnSP:(UITableView*) aaT0jxXnSP auNndZSbiA8:(UIInputView*) auNndZSbiA8 aUJhX0B:(UIViewController*) aUJhX0B aO3Qd4xgB:(UIVisualEffectView*) aO3Qd4xgB aNmkUc:(UIRegion*) aNmkUc aLaYfz:(UIActivity*) aLaYfz aRlLf:(UIView*) aRlLf a4VRnksDMfB:(UIImage*) a4VRnksDMfB aVYyoiQw:(UIColor*) aVYyoiQw ajH5cFe:(UIActivity*) ajH5cFe aonUWZ:(UIEdgeInsets*) aonUWZ aVcnhTXR:(UIEvent*) aVcnhTXR asCq0NulWeG:(UIMotionEffect*) asCq0NulWeG aOyhM1S:(UISearchBar*) aOyhM1S { NSLog(@"73yVQESJU8LXC6OcwgifKB"); NSLog(@"fIJeK4cwBGQyoVdWtgA8MF6lZkNHUPYjb"); NSLog(@"7HQf8YD4qCZ2KFhAPSe1a0"); NSLog(@"r5h3XtZzQgs1y"); NSLog(@"q8D2rleIOUBhadFH5NoKiJQPtwR1gM0"); NSLog(@"CY5V0u1IzrWMabf6hwFS"); NSLog(@"8SiOh7VcgwR5CxtNBQ"); NSLog(@"yX7qQwoW4gErpBkAlPfxC3MuZt"); NSLog(@"C8rwQJEe7Fv24tqyV5zNRZuHiUmIlPgsakfd36D"); NSLog(@"24PCWbA3uj5wp9q7ScnTlYXBU"); NSLog(@"icuVmewCoIH2Dp68yE9Rs5lP1Jd3vBkxGATNf"); } -(void)aRgJ8kc:(UIMotionEffect*) aRgJ8kc aix2bVPFt5:(UIControl*) aix2bVPFt5 adEwot1cWi:(UIBezierPath*) adEwot1cWi akr7daSG6:(UIUserInterfaceIdiom*) akr7daSG6 aEbdYM:(UISwitch*) aEbdYM aXbG8a37E:(UIColor*) aXbG8a37E awljnJ375N:(UIScreen*) awljnJ375N a3Gfc:(UIView*) a3Gfc alwt7Ng:(UIUserInterfaceIdiom*) alwt7Ng anpx5Vqsy0B:(UIMotionEffect*) anpx5Vqsy0B aptXAYWg:(UIKeyCommand*) aptXAYWg aqcZDQlYVm:(UISwitch*) aqcZDQlYVm anj0X7fPa:(UIButton*) anj0X7fPa { NSLog(@"6BOch3tQEmaY"); NSLog(@"gq8NLnHap9sGZu"); NSLog(@"iKZvdEpB1m5h0roCJ8UnkVj3NOSLAWDRHebzg"); NSLog(@"TIJVhHanodzBy9"); NSLog(@"JhT9EqNHDzwp4ZojuWtQvOCecVxIkdSARGgaMb3"); NSLog(@"raxSKAWzOLe8vMDbj"); NSLog(@"VxXb8FEfKip9lj6"); NSLog(@"oa3xiLb4dwXue"); NSLog(@"BzNEXAsWODgeT46Mp9Yk0rCU2x5IlnwdQRt1iL"); NSLog(@"LXomF3ceQ6rJI29ta1PkVATzNEvhyO0pwxUlC"); } -(void)ado0kW6gc:(UIActivity*) ado0kW6gc akcKi:(UIView*) akcKi avcxIhRl:(UISearchBar*) avcxIhRl ayf9D:(UIDevice*) ayf9D aOulCWXYn9J:(UIRegion*) aOulCWXYn9J aS5wdDo:(UIEdgeInsets*) aS5wdDo aeBfOo:(UIVisualEffectView*) aeBfOo amd08K:(UIInputView*) amd08K a1bj82V:(UIView*) a1bj82V avfIw:(UIMenuItem*) avfIw a2ShPz:(UIBarButtonItem*) a2ShPz ajSkXw:(UIUserInterfaceIdiom*) ajSkXw a0hzqwx:(UIDocument*) a0hzqwx az4od:(UISearchBar*) az4od aWVRrMDwyLz:(UIColor*) aWVRrMDwyLz aMy6Hcmv:(UIMotionEffect*) aMy6Hcmv aB1MlsKf:(UIScreen*) aB1MlsKf a5M4mDepEi:(UIRegion*) a5M4mDepEi aZIzLCeRl:(UIAlertView*) aZIzLCeRl { NSLog(@"oNLMPqBysjuA7aeb"); NSLog(@"DyAglbNGhMCvwixHPdLrRktmFsnO3z5"); NSLog(@"576vBLElOCmI3Xf2pYxNt0SUV"); NSLog(@"BA7C05XauELwNDpJjvetFInO3ZGgmf"); NSLog(@"6yliK7U4NCqfDgSIheaF1A"); NSLog(@"iK9RQdZ2xmVLP35GFwN87STlXfrEcOYy4Uubg"); NSLog(@"gie0BUwvDhsNbZ"); NSLog(@"aXqshztOZbyBDneQjEwJcATY3v8MH"); NSLog(@"6WGzuDLf43YUIs"); NSLog(@"dUZyoD3rCbgE7wT"); NSLog(@"XjUNJnTQqe0aBO9x8DurKRgY5w"); NSLog(@"3Y7ci2KeQhdr8z5pH"); NSLog(@"RkYwonfTaGxjcsy9bhgpmO2NFUHZ54Se"); NSLog(@"sPMRNBF349WjXZYylq7"); NSLog(@"4CADV5j1qwUXY2MzsxmfuhdKBL9rIlF"); NSLog(@"QeD7m1OUTAYCkufJWHMxnEVioaKyR2qg65"); NSLog(@"e7gQiW8Uyh529rCpMBlcA4SN"); NSLog(@"wC7YveL4laps1fiu2DrqdUP"); NSLog(@"YS8l3GZtKvuBsXDIbejN2TCk94VdW7cLRFhz56m"); NSLog(@"Xr4ecC7QKGSuAwiYZLsE3"); } -(void)ajZWg9H:(UIDocument*) ajZWg9H aEikcy8D:(UIColor*) aEikcy8D acnRVPZhJ:(UIActivity*) acnRVPZhJ awhWQMFpf2:(UICollectionView*) awhWQMFpf2 aGX5jK:(UIApplication*) aGX5jK aFv1KuZp:(UITableView*) aFv1KuZp al2pk:(UIDocument*) al2pk aW30FYgpLSV:(UIUserInterfaceIdiom*) aW30FYgpLSV aLJruv:(UISearchBar*) aLJruv alGAs:(UIBarButtonItem*) alGAs a2MRhl:(UIApplication*) a2MRhl aJotZIDQ:(UIWindow*) aJotZIDQ aK8tlN:(UIActivity*) aK8tlN aYuVHNpEF:(UIImage*) aYuVHNpEF ajJgaQ:(UIBarButtonItem*) ajJgaQ ahMiagX:(UIKeyCommand*) ahMiagX azO2tgNW:(UIView*) azO2tgNW ar3xw:(UIBarButtonItem*) ar3xw anlZvR:(UIInputView*) anlZvR aBq1UEwj:(UIEvent*) aBq1UEwj { NSLog(@"m30vfrSWweT9jny2uBJUDI8t1Y5OAEs"); NSLog(@"2IJDhqi6dx"); NSLog(@"xf6SXO2GEkaBtq4bT03u59yKpD1nYPNHVo"); NSLog(@"p3JiRLUY2mPWSkgMNIZber1wcAoTfnsBD"); NSLog(@"lUu8f4TKgcV5PhwmrLD2eEyIAizbS96X"); NSLog(@"0ylNRgUTxmvwVWK1Gbsta"); NSLog(@"Pcoq2S4iXnm"); NSLog(@"p6gV3BbvJeRQiZAmXfEs4P"); NSLog(@"mvcGJCDiogrxPK9I6aOpsEuZ"); NSLog(@"S7sJ8wNCaPunk01XjVRBI36UTotFQfxzA"); NSLog(@"PzfInCVjNQ29Z0S6mudaAvrDMplo"); NSLog(@"RzWB2YaFKZS5L1b6jA4k0OcIsNMoe7f"); NSLog(@"g3iBVLIHSZJGWpU2dhewz1"); NSLog(@"uMySxAkldwaPq0mZ3I7"); } @end