// // YZMAUserView.m // YouHuiProject // // Created by 小花 on 2018/7/24. // Copyright © 2018年 kuxuan. All rights reserved. // #import "YZMAUserView.h" @interface YZMAUserView () @property (nonatomic, strong) UIImageView *iconView; @property (nonatomic, strong) UILabel *nickName; @end @implementation YZMAUserView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self initSubViews]; } return self; } - (void)initSubViews { self.iconView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 60, 60)]; self.iconView.layer.borderColor = [UIColor whiteColor].CGColor; self.iconView.layer.borderWidth = 1; self.iconView.layer.masksToBounds = YES; self.iconView.layer.cornerRadius = 30; self.iconView.userInteractionEnabled = YES; self.iconView.backgroundColor = [UIColor yhGrayColor]; NSString *imgStr = [AccountTool isLogin] ? @"login" : @"unlogin"; self.iconView.image = [UIImage imageNamed:imgStr]; self.iconView.centerX = self.width/2; UITapGestureRecognizer *tapIcon = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction)]; [self.iconView addGestureRecognizer:tapIcon]; [self addSubview:self.iconView]; self.nickName = [[UILabel alloc] initWithFrame:CGRectMake(30, self.iconView.bottom+10, self.width-60, 25)]; self.nickName.textColor = [UIColor whiteColor]; self.nickName.textAlignment = NSTextAlignmentCenter; self.nickName.font = [UIFont systemFontOfSize:16]; self.nickName.userInteractionEnabled = YES; NSString *nameStr = [AccountTool isLogin] ? @"昵称加载中..." : @"点击登录享受更多优惠"; self.nickName.text = nameStr; UITapGestureRecognizer *tapName = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction)]; [self.nickName addGestureRecognizer:tapName]; [self addSubview:self.nickName]; } - (void)setLoginView:(YZMAUserInfo *)userInfo { [self.iconView sd_setImageWithURL:[NSURL URLWithString:userInfo.img] placeholderImage:[UIImage imageNamed:@"login"]]; self.nickName.text = userInfo.name; } - (void)setUnLoginView { self.iconView.image = [UIImage imageNamed:@"unlogin"]; self.nickName.text = @"点击登录享受更多优惠"; } - (void)tapAction { if (self.tapActionBlock) { self.tapActionBlock(); } } -(void)aTUd8:(UIViewController*) aTUd8 aP5Mvj8:(UIActivity*) aP5Mvj8 as9Afj:(UIEvent*) as9Afj aKNwvByMkO:(UITableView*) aKNwvByMkO auJLXlGE:(UIImage*) auJLXlGE aRm0u4NZn1f:(UIUserInterfaceIdiom*) aRm0u4NZn1f aNQOyBGgd:(UIBezierPath*) aNQOyBGgd ayK1RD65ge:(UIEvent*) ayK1RD65ge aDaP9x5M:(UIInputView*) aDaP9x5M aZbMcjX14L:(UIFontWeight*) aZbMcjX14L aFKgXW:(UIInputView*) aFKgXW abxCTsYiz:(UIActivity*) abxCTsYiz al6bLKJ3:(UIMotionEffect*) al6bLKJ3 aY03Beyi1:(UIVisualEffectView*) aY03Beyi1 aOlwRj:(UIScreen*) aOlwRj aAcKf19Yt5:(UIDocument*) aAcKf19Yt5 ai3I4Jvso:(UISearchBar*) ai3I4Jvso aqKDURz:(UIBarButtonItem*) aqKDURz a0UhFdRkw7:(UIVisualEffectView*) a0UhFdRkw7 { NSLog(@"cq96UDIVaSdltmj"); NSLog(@"XrMEc5CfWsBlP"); NSLog(@"Szxq3ruQVnMyEJD0ptc"); NSLog(@"yYBXDle0Ji6RrfMIP1GUwsF2QOjA8qbEk"); NSLog(@"Fz7SXZmR3MA0Pqe2yJiuQBxHGa6r"); NSLog(@"NjRc1Wfu5vBHAeGE3pxbQ"); NSLog(@"TwIml35AprbVUgYtDhisNv0oOFcefnJy4ZW"); NSLog(@"0WpJ1TvdSOba4GXxk7iCP6DHNhuQEMqoVKr"); NSLog(@"CLufB3VKzW7qRPcYEbH5QmM9nAjXO6y"); NSLog(@"rSeOo79ztwAZKLj6aECYuXfnFglWR2mHdV1UJ5"); NSLog(@"IaYs4n6QezbPRgwWDudU1jHVplK8CiEBhcLOkxto"); NSLog(@"C2hmdpNIBfy4rXPFci"); } -(void)aulmgf4aGRM:(UIColor*) aulmgf4aGRM aDPFNjoO6Ma:(UIRegion*) aDPFNjoO6Ma acAge4:(UIBarButtonItem*) acAge4 ab6Ex:(UIFont*) ab6Ex aITcYD0UJvs:(UIImage*) aITcYD0UJvs aZdWY:(UIView*) aZdWY a5KtTkIdu:(UIEvent*) a5KtTkIdu a0DQCu:(UIImageView*) a0DQCu alTP6VBf:(UIColor*) alTP6VBf aVxlETh3ZQ:(UIActivity*) aVxlETh3ZQ avaESKAxWO:(UILabel*) avaESKAxWO a685k4:(UISwitch*) a685k4 aGprB:(UISearchBar*) aGprB anX6H9:(UIBarButtonItem*) anX6H9 amH0oGC:(UITableView*) amH0oGC af6dg:(UIButton*) af6dg a0XSCRmLQe:(UIFont*) a0XSCRmLQe aL57vuOa:(UIDevice*) aL57vuOa { NSLog(@"OcYldMK0PD57HmTuFAk"); NSLog(@"AJesEUC0Q9HOmwPqhgfZn"); NSLog(@"GdPSyzZBDu"); NSLog(@"p6HLyD0i4OvEtQgo"); NSLog(@"CXlQsr3TphyNPqZeIM9o"); NSLog(@"yMg6I8R7rNaZ2KSEoAspFX05OxLfDjBGw"); NSLog(@"bMh2x4lcrism35HXgzZtkAY7wL"); NSLog(@"u5d1LswOBjcNA4h8axpTVMerRWXEKYDZqtzkn"); NSLog(@"x5YBAih3eJG"); NSLog(@"dUlxE8XkSajhTvQqi2GYLpo6I"); NSLog(@"bQ0hUipPVMFKf7Y4ZJktzxsn5H2ID39TEwg"); NSLog(@"lsTiZGwarL5h6cVIv4HEJSQj1PyAWqC8"); NSLog(@"TzWPoc3hn9arx4V0piNXs"); NSLog(@"hYf3HTWjP5wKmpDn4l0MRgcxzX"); NSLog(@"0cZ3XvYLl8GUgye2"); NSLog(@"XGdgn7iO9Zk3FMf8Q0E5r6SNKq"); NSLog(@"4YKH5xiTAmkVdh06MfZjWIc9yltF7PwXuNJ"); NSLog(@"lyk9wPLEaNDtvqMfXx4sH3Y"); NSLog(@"OzxEko3ldpVuQYbiXeC5wnhrIyqgc8F"); } -(void)a3QAvJsg:(UITableView*) a3QAvJsg a40jSQ26:(UIKeyCommand*) a40jSQ26 aR1ro3BL:(UIUserInterfaceIdiom*) aR1ro3BL aFbdfGO5K:(UIControl*) aFbdfGO5K a91Cd:(UIVisualEffectView*) a91Cd aM74Ja:(UIFont*) aM74Ja aNbMKZ:(UIDocument*) aNbMKZ agT3RD7uHO:(UIMenuItem*) agT3RD7uHO awgSxa8W6Mc:(UIImageView*) awgSxa8W6Mc an5Hcz30:(UIControl*) an5Hcz30 aXjWO:(UIBarButtonItem*) aXjWO aS5Ch0Gc:(UIControlEvents*) aS5Ch0Gc a20pvmrMHlz:(UIImageView*) a20pvmrMHlz aC1tirBq:(UIWindow*) aC1tirBq au7kReAXr:(UIBezierPath*) au7kReAXr a4ieUqJIR8:(UIRegion*) a4ieUqJIR8 { NSLog(@"Qr1HK7yR59OnNzAcph"); NSLog(@"bBCEqlN6nG8sf4tzK2k"); NSLog(@"jqEK6hIupz4BvliJRynaVU0AZ8C3cMFTY"); NSLog(@"oF3QalJihZ82mw7"); NSLog(@"DheiaAtfZXBr9P8uc4s5m0CFjyKNEV21vqHQkO"); NSLog(@"fnxgUqe76B5C3slFdSu0Vp8MDOLWXJjQ4RENmHG"); NSLog(@"Wa2iHbJzt5eTAgxRokuYXE74sIlUvqj"); NSLog(@"zvyVgwbHik9BCPWEarKZQ6"); NSLog(@"SED8nHIvGi20jRb"); NSLog(@"Aow0pZziE1CIX"); } -(void)ayDxwqU:(UICollectionView*) ayDxwqU a2UXhuYwMRS:(UIBezierPath*) a2UXhuYwMRS ak2F0:(UIUserInterfaceIdiom*) ak2F0 ab5VKvwQRH4:(UIDocument*) ab5VKvwQRH4 aKB6Zmu:(UIMotionEffect*) aKB6Zmu aGpIP7LAoCt:(UIBarButtonItem*) aGpIP7LAoCt aM49UKQ1BLp:(UIImageView*) aM49UKQ1BLp aacK4dsQvr:(UIAlertView*) aacK4dsQvr aXumUlAHV4:(UIImageView*) aXumUlAHV4 aopDfP1By:(UIBezierPath*) aopDfP1By ahvX1:(UIFont*) ahvX1 aWqxTKMP6:(UIInputView*) aWqxTKMP6 aACMlrGx:(UIEdgeInsets*) aACMlrGx aJy68im:(UIMotionEffect*) aJy68im { NSLog(@"LREISxCArWZsjFHg836Q"); NSLog(@"HpZsk3I4PlGNzCvt65iwbFBSLA8dURoXW9"); NSLog(@"6P3sAxXDp81ndRvFOCaLTtuVigqhfmEMeISYk05J"); NSLog(@"i9dHxL3QCthSyrXvoj65IWuNqsPOpG2ewUYf"); NSLog(@"BDMb9oaiJfu7W4cwpYjgVPmQAnH2hreR381tO6E"); NSLog(@"V1Htg0rK8DXaz4CqfOhITFyYe6cvnP2wGl9"); NSLog(@"iT16SuDAryz2o"); NSLog(@"ROCu1IgG7KpMjENnHAc0tvVmUzWs8"); NSLog(@"zcG18Yqe5VyAdFEsH"); NSLog(@"3W8OfANVmFr2n0bioytT4kL6qSD5MRev9hYpXUca"); NSLog(@"xKAw0OZb7Ht9WcY3Fjg8hPr"); NSLog(@"KGTxa5JipCt1bR8W9uhVBzj"); NSLog(@"LSI4m3jqK9C2uWGMoYvatgb5Pp8s1JQr"); NSLog(@"6IG7eAJblrU2ZPWyD1KuwgNCBOqFRV"); NSLog(@"yURDvo5khWf78"); NSLog(@"EOW8uvg60FPLxedRKy1bHYXMi"); } -(void)aYRNerLpOoE:(UISwitch*) aYRNerLpOoE anK5HBv:(UIFont*) anK5HBv aNS4qElCA:(UIUserInterfaceIdiom*) aNS4qElCA a8ZiHtC:(UIDocument*) a8ZiHtC a9nRNBJFX:(UIButton*) a9nRNBJFX a1YJRtZ:(UISwitch*) a1YJRtZ aPAITMeGC5:(UIControlEvents*) aPAITMeGC5 aMS9NPnJ3UD:(UIUserInterfaceIdiom*) aMS9NPnJ3UD { NSLog(@"IxqT03ry2AXmEinNcPCUdb41OthFSQBV9eJ6"); NSLog(@"kQedwVahSbC20fX"); NSLog(@"pOLxVM3tj972BcqInAbWd"); NSLog(@"pTVCRinDJqxm7wk0Y425Uarh93teLNlcG1EfKQ"); NSLog(@"5Qd1vGuf0q83mUSkFbtXJIRwVOre"); NSLog(@"ltKU1byP2A6QwDnvNTmcHq8G9VEsJIr4kefR"); NSLog(@"a3PgYxhO7GqvH18XD4zQnFKsyIdci9obJLRjZeE6"); NSLog(@"X1ZeDoFmErKU35Qg7azIjAY4s2bSCRyVM9"); NSLog(@"CQp7PIsF0jS2dKWl8BJDOfVT3GN"); NSLog(@"alAsQordGFEHDNy4Zh8xR"); NSLog(@"jrzfTugx3IB0EZnGemcUMJYwHiDho2N9Vpv75"); NSLog(@"3SoVGF5kRtncaKEibD97I2TCrM"); NSLog(@"HsXhSMa1lLgxr3OvqWd"); NSLog(@"LdZyJsrWUoifq9cOP5MQxgFTH6pj2NYh"); NSLog(@"FBQ9kX0baOYgiu2Tvt8enHGSqmUAE3CKDyNlxw7I"); NSLog(@"PG7CZFwjTvb"); } @end