// // YZMAFourButtonView.m // YouHuiProject // // Created by 小花 on 2018/4/28. // Copyright © 2018年 kuxuan. All rights reserved. // #import "YZMAFourButtonView.h" @implementation YZMAFourButtonView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundColor = [UIColor whiteColor]; self.layer.cornerRadius = 6; self.layer.masksToBounds = YES; [self configButtons]; } return self; } - (void)configButtons { NSArray *titles = @[@"我的订单",@"已领优惠券",@"淘宝购物车",@"浏览记录"];//,@"collection" NSArray *images = @[@"my_order",@"my_ticket",@"my_car",@"my_browser"]; CGFloat width = self.width/titles.count; CGFloat height = width; for (int i = 0; i < titles.count; i++) { UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(width * i, 0, width, height)]; [button setTitle:titles[i] forState:UIControlStateNormal]; [button setImage:[UIImage imageNamed:images[i]]forState:UIControlStateNormal]; [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside]; [button setTitleColor:[UIColor YHColorWithHex:0x7c7c7c] forState:UIControlStateNormal]; button.titleLabel.font = [UIFont systemFontOfSize:12]; button.tag = 10000 + i; // button标题的偏移量 button.titleEdgeInsets = UIEdgeInsetsMake(button.imageView.frame.size.height+5, -button.imageView.bounds.size.width, 0,0); // button图片的偏移量 button.imageEdgeInsets = UIEdgeInsetsMake(0, button.titleLabel.frame.size.width/2, button.titleLabel.frame.size.height+5, -button.titleLabel.frame.size.width/2); [self addSubview:button]; } } - (void)buttonAction:(UIButton *)sender { NSInteger index = sender.tag - 10000; if (self.delegate && [self.delegate respondsToSelector:@selector(YHMineFourButtonViewDidClickButtonIndex:)]) { [self.delegate YHMineFourButtonViewDidClickButtonIndex:index]; } } -(void)amgbzre:(UIScreen*) amgbzre a1R8Qg3uH9t:(UIBarButtonItem*) a1R8Qg3uH9t aazloMWwID:(UIWindow*) aazloMWwID a3B6H:(UIDocument*) a3B6H aP9oOWb:(UIEdgeInsets*) aP9oOWb aXpVugG:(UIRegion*) aXpVugG aayBi6q:(UIKeyCommand*) aayBi6q aNOM9:(UIMenuItem*) aNOM9 { NSLog(@"8jqh5cOfERW40Pm3ry2eB9LHvDo"); NSLog(@"UmB1OlNIcXtCu9os2ZyprKR8EqLwi4gG5TjM"); NSLog(@"j4DOIZdAL8NsYJbXyw5zQxPhGr"); NSLog(@"4NtjRiUEbpck9GzfJ7HLZ8vTQDPsOlmn"); NSLog(@"rRD0SgyqpVsxnA8QXcw7v2t"); NSLog(@"prvd6quYCA5PXH7"); NSLog(@"EjV1vtBS6Cfsl5M"); NSLog(@"QahPwd6R0bBCoWZup1rlg"); NSLog(@"jnb7yIsXrWxwREFHPCqu1QlMdATL"); NSLog(@"5A0DUyWPZGaJo7IlkuHQYNfTXpCsK"); NSLog(@"0qhW6RaXvF4wA7C"); NSLog(@"r4jUQ89dKtwJemnSfVYBWoD6"); NSLog(@"7W6rAjwvY1yJEHSiCfT"); NSLog(@"ydSjYQi2Icmh6o4vrlMWtOTsfXD"); } -(void)aX4qJ:(UIAlertView*) aX4qJ aDKEyaY5bL:(UIWindow*) aDKEyaY5bL a8IwAXk3iJ:(UISearchBar*) a8IwAXk3iJ aawfHDFC:(UIFont*) aawfHDFC a9z5jkdcVD:(UIVisualEffectView*) a9z5jkdcVD amZODcyJ:(UIKeyCommand*) amZODcyJ ahdwE:(UIBezierPath*) ahdwE avr5RnmY:(UIMenuItem*) avr5RnmY aZW9artk:(UISearchBar*) aZW9artk apASIB:(UIKeyCommand*) apASIB avGMtVImC2:(UIViewController*) avGMtVImC2 { NSLog(@"SqDvbtBUJ72uCN"); NSLog(@"FtvmUrX8DLkZ2OQyug9M6P"); NSLog(@"sWuzCP9hbwxLpR4Kjd6v0aHU2IfBkcOt"); NSLog(@"2dzLG84m0lwYxUu"); NSLog(@"Z8pj1EdAHY6Vf2BIPUKlhaMQx5"); NSLog(@"MWpgQxSKZnzDr07Y1EtwfhJcsUVyHqiTeau4PCIL"); NSLog(@"JfazRTwLAxnNumZg8v7KYMk2FUdW"); NSLog(@"hdynbZcuPOIrfLQEK3AFVljBCkUXJ9RoTwp80x6"); NSLog(@"jv7LoEPABw9YVUx2ycrQiFtkaSGJXZOWTqhe"); NSLog(@"9KEYDny8kSsarHZMzmef4hwBOvcb2XLTQR"); NSLog(@"6ezJV4nrwUH903QNDiOo18KSXCPmtBIf"); NSLog(@"nxwgz3oh5NRE7IiPmDt8j6AFHMGKUZkbVqSvQarJ"); NSLog(@"qENLf3YXwavtszMmFGrJ2eZD6HT58lU79upVPcOW"); NSLog(@"cRP8F6bV1tTfUdoeKMWxsOl4m0Azwnju9S53YQp"); } -(void)an3O6:(UIButton*) an3O6 a7OYQErMCx:(UISwitch*) a7OYQErMCx aBeY2Ht:(UICollectionView*) aBeY2Ht aeK0RhL6a:(UITableView*) aeK0RhL6a aPcW0lGKNH:(UICollectionView*) aPcW0lGKNH aeTyUCc:(UIImage*) aeTyUCc a2VRJW0:(UIViewController*) a2VRJW0 au49cT7f:(UICollectionView*) au49cT7f aB9pULCEuiN:(UIButton*) aB9pULCEuiN azZbIoi:(UILabel*) azZbIoi arz16vFe4yQ:(UIMenuItem*) arz16vFe4yQ a6zAJ:(UIApplication*) a6zAJ aK09l4Dm:(UIFont*) aK09l4Dm aeDGRhx1Ipq:(UIButton*) aeDGRhx1Ipq aJOTiK:(UIBezierPath*) aJOTiK a3o21XGQWA:(UITableView*) a3o21XGQWA { NSLog(@"4cNFSGlZR2kWbuv"); NSLog(@"I3jtaDEAcY"); NSLog(@"sXage4zvxQkTK"); NSLog(@"lnW2hOtDvxyBFMCKUpTrI8jwNYuQHdEfcmoX"); NSLog(@"kEF0HbKsO9Rvcj7lSNArTCohx3GPDw4U"); NSLog(@"3ZLfmTC8WFzYNry5t9ivlHskXxndQ0"); NSLog(@"w0y6pSVxRaIlq74cM8z1ZhdYgTJiLBo5"); NSLog(@"Owtoa6DeXUvxQl3cpR7WC"); NSLog(@"fVwJ5AniPjF1RTLuNyzdEb0h8UxrDgBQoqkC2GIX"); NSLog(@"F04CklQhITcXA9"); NSLog(@"E1B0WbYkZgPnuSVeflGotNdxIH"); NSLog(@"iV4ZJDGgK1"); NSLog(@"RgYE1Lz856VvUcTP9uwj"); NSLog(@"abVsJFeydYLH26g"); NSLog(@"Q9XkMjmvwJe"); NSLog(@"a0t9OcjRm1Wx8Je4VHkMsfEQ3vGBlPYZ5w"); NSLog(@"0DhofReX6kSszc2A9J1"); NSLog(@"t5jzoefQLDBO1rd"); NSLog(@"HMxCXuiAYpW4fQcNhUbL2oT9emOyadr1RF"); NSLog(@"aLfdi1E6Bpu4A"); } -(void)aYcbiqhk:(UILabel*) aYcbiqhk apmsMLQef:(UIFontWeight*) apmsMLQef aBOJfeYQx:(UIFontWeight*) aBOJfeYQx ayT10sE:(UITableView*) ayT10sE a7bpK:(UISearchBar*) a7bpK aP6oQ0iE:(UIUserInterfaceIdiom*) aP6oQ0iE aydClFKNwGq:(UIApplication*) aydClFKNwGq { NSLog(@"CFqadUsJGpBh9vE"); NSLog(@"tSILMrVf5AZ8QiRj19dBgWJb064wX"); NSLog(@"HXevkK01VT"); NSLog(@"zr1tE2KwbnI6ujRTCJ504Ga79sPMHpclZemNd"); NSLog(@"zWev6EAaYkJqRfKhGVPg21dl37n9X"); NSLog(@"BNGqED0idFofV1vzYSK9MAgwW2"); NSLog(@"l0QjgGJdn2yNhUH"); NSLog(@"CUSMhg6pNrlDv"); NSLog(@"XAFzM2VoI0jQYDTCu"); NSLog(@"5whRfY3Q0OKiC"); NSLog(@"d2EwHep4cvf91GizRr"); NSLog(@"hZ3WkSvf1Prd0s6eVnBw4mUAX"); } -(void)aMGTwl:(UIUserInterfaceIdiom*) aMGTwl agdBjlm:(UIDocument*) agdBjlm alnwOFzh3:(UIView*) alnwOFzh3 a9icE:(UIRegion*) a9icE aGL1w:(UIRegion*) aGL1w av5hBK:(UIRegion*) av5hBK arW6dfRskP:(UIDocument*) arW6dfRskP aZgjABk:(UIRegion*) aZgjABk aFs1qhB:(UIScreen*) aFs1qhB { NSLog(@"QZkqWSUhNcLtvJp3o0O1e6Mx"); NSLog(@"yaiJ2R1lhm6jBguQwcF5zIpTOf34dDEGCtkSK"); NSLog(@"bRXAoTLjNkqY0tE"); NSLog(@"jz7RcCkPJaAyInb8mfplZUgFKv1NGOdx6Hi0"); NSLog(@"3lKQZMbPkvfj47uhs"); NSLog(@"vAKRtl5a4TbW7srG0gQZPJCnei"); NSLog(@"QJF2mxzG5TRcEq6oDbuL"); NSLog(@"chlfriREbj1SWZd6O7"); NSLog(@"PTDHxueXdwVo"); NSLog(@"c13Wqz6O98SCXea4QRKkHoGgLD"); NSLog(@"jucqmpJ2nZlA58CyL79iP06YQw4Bha"); NSLog(@"Y8x4HJBd9DUkEAS"); } -(void)acQUzJHN3oi:(UIWindow*) acQUzJHN3oi apoMalZgb:(UIAlertView*) apoMalZgb a3qY6FEX:(UICollectionView*) a3qY6FEX apQD7x:(UIAlertView*) apQD7x arWfcxBJ:(UIActivity*) arWfcxBJ a1REfS:(UIApplication*) a1REfS anJBtFQ:(UIActivity*) anJBtFQ aIV4PdMGw:(UIWindow*) aIV4PdMGw aRqrLeBmi:(UICollectionView*) aRqrLeBmi asN1cx3zg:(UIDevice*) asN1cx3zg aSN4ElKf7:(UIViewController*) aSN4ElKf7 aGJebTu6Pr:(UIBarButtonItem*) aGJebTu6Pr a1Lib2IK:(UIUserInterfaceIdiom*) a1Lib2IK { NSLog(@"De7YgWAZdvFSR3zEls19iKuqh4r80QNmjJ"); NSLog(@"AScLojXCUBQimhI6G5zT1Y384vkROgPxnM207"); NSLog(@"qN5LYBezPAE2RXHOGmV8xZo"); NSLog(@"D9OJqMtxcjyUA1fEd"); NSLog(@"F2GUQM6Y1BNPhSg30mZc5LdIzpVv4TobCAi8e"); NSLog(@"zNF3QkJph7ErZxy9IURuH2MLWsq"); NSLog(@"0Zo5kEHjJqlWCf3nUsaBgPKDpcVbXRu17"); NSLog(@"tn6fMCGV3e"); NSLog(@"SIcZNlvO0KsPfGg4mLCeiyBxknFV63oDJRruj1bd"); NSLog(@"c1DS4EkCKd2WfreNjLFiwp7otbh3z0n"); } -(void)aivt23MLQmV:(UIMenuItem*) aivt23MLQmV azvNpDRxuq:(UIUserInterfaceIdiom*) azvNpDRxuq awhMlqNr3Ff:(UIFontWeight*) awhMlqNr3Ff aLvOtr2QR:(UIEdgeInsets*) aLvOtr2QR anfjwsXih:(UIEvent*) anfjwsXih aThCfg:(UIBarButtonItem*) aThCfg aePFAdiuM:(UIRegion*) aePFAdiuM albS6:(UICollectionView*) albS6 ahJFymObY:(UISwitch*) ahJFymObY amNLs2a8E:(UITableView*) amNLs2a8E a6Kr1B:(UIControl*) a6Kr1B aoTx246nSH:(UIBarButtonItem*) aoTx246nSH aK34hjR:(UISwitch*) aK34hjR anQTChfODaU:(UIRegion*) anQTChfODaU ao8JiKe6:(UIColor*) ao8JiKe6 aX0IRPwBT5:(UIView*) aX0IRPwBT5 aGdIDlZbKr:(UIMotionEffect*) aGdIDlZbKr aTam2cbV:(UISwitch*) aTam2cbV anZgHBe9Gzf:(UIWindow*) anZgHBe9Gzf a20Su:(UIInputView*) a20Su { NSLog(@"d2MA9yWwxC0iO7Hq4Nupza1FotmneksTUXb6"); NSLog(@"DJE7Xm3HLtp1liPIU9ezCh0FMdYbQwycKR"); NSLog(@"YpxSdzQ467OVtgEjH9bZWKTJnFe23acICo8rv"); NSLog(@"z71cubJ2RL5jpBsCOVQgIMSvFf4Pdi"); NSLog(@"dLS2Hb6QPmfVi8huIp4DsNkt9GMgq1cFeyA5"); NSLog(@"3216fmC0wi5l"); NSLog(@"FKTrjvlqfaUgMChZPzcn5p"); NSLog(@"Hohx4ZDpRlPgWdXfOy6NBK2vSq7"); NSLog(@"3GSFMfNLpoPWdR2ZuiYkcgQKvTHsnbXJaB"); NSLog(@"Be647LJD5ihoSYkCWrmcZTqaUQRbE03g8"); NSLog(@"KNcAq07oQpuUaEGWkYZdHMDPg8"); NSLog(@"8zPTvt9r2OEXSxR0GWgJYpyIjD6LUm"); NSLog(@"so4UtqZbWxIQRkpJ37ruAjKyTeO60zhnXgl1EVF8"); NSLog(@"AiYJBC4pfwdLvxlcHM5mOePru8k2ajVU3W"); NSLog(@"xYd6bMHnpiolA9Dhvs2OB1"); } -(void)aEmgCe4Pl:(UIDevice*) aEmgCe4Pl aWEtR2xfSeV:(UISwitch*) aWEtR2xfSeV aa5qQ3cj81p:(UIActivity*) aa5qQ3cj81p aJwu1zrQc:(UIScreen*) aJwu1zrQc aL4HC7ldiY:(UIApplication*) aL4HC7ldiY aR1TsLD:(UIKeyCommand*) aR1TsLD aC9goNAeHtY:(UISearchBar*) aC9goNAeHtY aqLC2KDrF:(UICollectionView*) aqLC2KDrF aBw9u:(UIEdgeInsets*) aBw9u avfo1piMyx:(UIDocument*) avfo1piMyx aHntDEzo:(UIBarButtonItem*) aHntDEzo a9hyLUA:(UIMotionEffect*) a9hyLUA aG6V8:(UIControl*) aG6V8 { NSLog(@"rwjp9HYMuTC32NXLPhoOJkS7gR"); NSLog(@"GR2zJgMEIcKQHrBavTS9qjemUopLVx"); NSLog(@"OeRjlufkmULrAc8h4pQNtMXDgGyowE6J0xCWanP"); NSLog(@"Epb5umTR2By3HMV4"); NSLog(@"kOWGHeonawC6IRs4985"); NSLog(@"y4pl3tGZYk"); NSLog(@"l4OLf6eAdpNUomk"); NSLog(@"QHmNEWf9xoT7YSV2rcU6B5JbaOdKtRg1lLv8"); NSLog(@"VBjyJcr1AoGZMPt83wFz"); NSLog(@"G68PtSoIJZvrFwW0bmsN5jhdTYU4"); NSLog(@"Je6o78DwMGUY5sRdQVSXEzjv"); NSLog(@"NABJu9gpre7SkzQGxcCYV4"); NSLog(@"gxJIlE1AdCj8KpDXMt3FReB7zGHuOW4Vky"); NSLog(@"F3SXgRuoHt4L57T1xKwVA8WC2apdInZhYBesb0"); NSLog(@"ca43u1qg7VPBt9svOYhm"); NSLog(@"m7R65jnFg928Hqv13BzW4XQxiGEJMaof"); NSLog(@"GsVc1drY0w8M4xXKFP"); } -(void)auWirF:(UIVisualEffectView*) auWirF aQxdL:(UIFont*) aQxdL aG9MDuLb0:(UICollectionView*) aG9MDuLb0 aYgNXH6K4sv:(UIBarButtonItem*) aYgNXH6K4sv aPQCz:(UIButton*) aPQCz aZ4Fom:(UIEdgeInsets*) aZ4Fom aEWcpGyj:(UIFont*) aEWcpGyj a9obac6Yh2:(UIButton*) a9obac6Yh2 auatm:(UIBarButtonItem*) auatm af7Ntsb:(UITableView*) af7Ntsb ah2Kb6s1fu:(UIMenuItem*) ah2Kb6s1fu { NSLog(@"B3AUa469zquYL5x71yofNctVQSEZhi"); NSLog(@"9N35XyGPfiYmFdz"); NSLog(@"eYyZMdzHQabCBnhDjR9u"); NSLog(@"uDQFvy1NgeprUbOjh3ABHPL9klwXf"); NSLog(@"cJpETr9oONq7V3IlUMYBzPeAGZ8S6m0gQk"); NSLog(@"s6GE52XnzJyVBt0NY1FKPH4RapMkx"); NSLog(@"enPdZJDAvHcbozpuLq3Vi2NFfmj4W"); NSLog(@"Yt0RpXLKuT5H4x26NOo7Mbzje3mEvcdJyDQnVli"); NSLog(@"Z14LeyPDnlqAF"); NSLog(@"9zvosk41l2CgBdq"); NSLog(@"19gThbBLyw6jp2DKkzEYfs5P8XieRmc0S"); NSLog(@"BX9eqHu1wrMLdvloU8nCg"); NSLog(@"9QFnyfxhXBw4qjLl"); } -(void)aS19paEqVIO:(UIControlEvents*) aS19paEqVIO a2bNcL7:(UIInputView*) a2bNcL7 a0wKWnSJQHe:(UILabel*) a0wKWnSJQHe aPc0ODR:(UITableView*) aPc0ODR aSdxhV:(UIControl*) aSdxhV armLR:(UIImageView*) armLR awyiVYHUlAn:(UIBarButtonItem*) awyiVYHUlAn a29pP1:(UIWindow*) a29pP1 alf9O2nB:(UIBarButtonItem*) alf9O2nB ad2beCtoXmR:(UIScreen*) ad2beCtoXmR adO018U:(UIImage*) adO018U aXuBZEgq1D:(UICollectionView*) aXuBZEgq1D aHzrE5VTFg:(UITableView*) aHzrE5VTFg ab4k2P:(UIBezierPath*) ab4k2P ado8hcIE:(UIKeyCommand*) ado8hcIE azoQ3:(UIRegion*) azoQ3 aTqVvUa:(UISearchBar*) aTqVvUa { NSLog(@"tvMhgFSD1mTbH7aJRiwnP"); NSLog(@"p8lRjMwQT0byu9Nke46og3"); NSLog(@"RdlEH7s5aWNk6AOSJr3B"); NSLog(@"5xp6aJfFnGPoLzUj7VwZYbyl0sN"); NSLog(@"1v9aHck0Md6UF4h5SP7EiQm"); NSLog(@"i2QjuR0VszmPgNhcloG1tMHA"); NSLog(@"WFw8Qpsuy1j0frD4JIExzvTeLaC"); NSLog(@"mMRh3bKq1Ve46yEOa"); NSLog(@"qhT39J7DXNB25mdIAMV1O0P"); NSLog(@"p04TGhaVr9Oiu3mEJIzcek25vYFA"); NSLog(@"FxX0Pa8U3tHzuAYK4vr6Nln9"); NSLog(@"av28D3YAMkzln1eH4uVX69tByqG0LKfj"); NSLog(@"nHWJuzTyvhfigL892F3"); NSLog(@"wsxqe2bjgSaDIRZcEf1HC"); NSLog(@"DVWqO8PLmcIMev2hkBzwf"); NSLog(@"8W4Ywa1Hotb7pivcsnyrV5ASDPk0gX"); NSLog(@"W8jUPomgEHiG4x"); NSLog(@"pwHsKBvg769yaGbYo8WM1CE24TUumrS"); NSLog(@"mSB6Ex3bFrIpz9GPK8eaognu"); NSLog(@"MZstzjxAKqWE1uIkrbl3HLS50QNB8Jp6eXF2i"); } @end