123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- //
- // YZMAGuideView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/8.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "YZMAGuideView.h"
- #import "UIButton+ImageTitleStyle.h"
- @implementation YZMAGuideView
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- self.backgroundColor = [UIColor whiteColor];
- [self initSubViews];
- }
- return self;
- }
- - (void)initSubViews {
- // UIImageView *titleIcon = [[UIImageView alloc] init];
- // titleIcon.image = [UIImage imageNamed:@"guideTitle"];
- // [self addSubview:titleIcon];
-
- UILabel *titleLb = [[UILabel alloc] init];
- titleLb.font = [UIFont systemFontOfSize:16];
- titleLb.textAlignment = NSTextAlignmentCenter;
- titleLb.textColor = [UIColor homeRedColor];
- titleLb.text = @"口袋优选更懂你";
- [self addSubview:titleLb];
-
- UILabel *label = [[UILabel alloc] init];
- label.text = @"选择性别进入app";
- label.textAlignment = NSTextAlignmentCenter;
- label.textColor = [UIColor YHColorWithHex:0x999999];
- label.font = [UIFont systemFontOfSize:12];
- [self addSubview:label];
-
- UIButton *manBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- [manBtn setTitle:@"我是帅哥" forState:UIControlStateNormal];
- [manBtn setImage:[UIImage imageNamed:@"guide_boy"] forState:UIControlStateNormal];
- manBtn.titleLabel.font = [UIFont systemFontOfSize:Fitsize(14)];
- manBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
- [manBtn setTitleColor:[UIColor YHColorWithHex:0x111111] forState:UIControlStateNormal];
- [manBtn addTarget:self action:@selector(changeSexAction:) forControlEvents:UIControlEventTouchUpInside];
- manBtn.tag = 1001;
- [self addSubview:manBtn];
-
-
- UIButton *womanBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- [womanBtn setTitle:@"我是美女" forState:UIControlStateNormal];
- [womanBtn setImage:[UIImage imageNamed:@"guide_girl"] forState:UIControlStateNormal];
- womanBtn.titleLabel.font = [UIFont systemFontOfSize:Fitsize(14)];
- womanBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
- [womanBtn addTarget:self action:@selector(changeSexAction:) forControlEvents:UIControlEventTouchUpInside];
- [womanBtn setTitleColor:[UIColor YHColorWithHex:0x111111] forState:UIControlStateNormal];
- womanBtn.tag = 1000;
- [self addSubview:womanBtn];
-
- [titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(FITSIZE(100));
- make.width.mas_equalTo(150);
- make.height.mas_equalTo(20);
- make.centerX.mas_equalTo(self.mas_centerX);
- }];
-
- [label mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(titleLb.mas_bottom).mas_offset(15);
- make.centerX.mas_equalTo(self.mas_centerX);
- make.width.mas_equalTo(300);
- }];
-
- [manBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(FITSIZE(70));
- make.top.mas_equalTo(label.mas_bottom).mas_offset(FITSIZE(52));
- make.width.mas_equalTo(52*1.5);
- make.height.mas_equalTo(213*1.5);
- }];
- [manBtn setButtonImageTitleStyle:ButtonImageTitleStyleCenterDown padding:25];
-
- [womanBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.right.mas_equalTo(FITSIZE(-70));
- make.top.mas_equalTo(label.mas_bottom).mas_offset(FITSIZE(52));
- make.width.mas_equalTo(52*1.5);
- make.height.mas_equalTo(213*1.5);
- }];
- [womanBtn setButtonImageTitleStyle:ButtonImageTitleStyleCenterDown padding:25];
- }
- - (void)changeSexAction:(UIButton *)sender {
-
- NSString *sexStr = [NSString stringWithFormat:@"%ld",sender.tag-1000];
- [[NSUserDefaults standardUserDefaults] setObject:sexStr forKey:UserSexKey];
- [[NSUserDefaults standardUserDefaults] synchronize];
- [[NSNotificationCenter defaultCenter] postNotificationName:ChangeSex object:nil];
-
- [UIView animateWithDuration:1.5 animations:^{
- self.alpha = 0;
- }];
-
- }
- -(void)aoxlhYR:(UIFont*) aoxlhYR as4WyaI:(UIMenuItem*) as4WyaI aLNB0vX:(UIBezierPath*) aLNB0vX aRqihvYM:(UITableView*) aRqihvYM adGmIA:(UISearchBar*) adGmIA aa2qROLjBoZ:(UIBarButtonItem*) aa2qROLjBoZ akeGAqao6PT:(UIActivity*) akeGAqao6PT adYnHA9c:(UIMotionEffect*) adYnHA9c aOAsZbx:(UIMotionEffect*) aOAsZbx a0vAIYXj4:(UIFont*) a0vAIYXj4 afFOKoZzR4:(UIViewController*) afFOKoZzR4 adpMP2nROS:(UIButton*) adpMP2nROS atMSOCR2N:(UITableView*) atMSOCR2N aBMCqy:(UIBarButtonItem*) aBMCqy anhcjRfi:(UISearchBar*) anhcjRfi aaGzpMmB:(UIEdgeInsets*) aaGzpMmB aO2txZJu:(UIInputView*) aO2txZJu azyYTj58:(UIWindow*) azyYTj58 adqJkw:(UIActivity*) adqJkw {
- NSLog(@"zJLCaUKmGNulwDBZTA2yIhktP17S4R");
- NSLog(@"7YF9sRLm4210SnQkfGzy8Z");
- NSLog(@"OJxTl0FonpGmtsyA1ri5YNILZgPc");
- NSLog(@"jzdcKo94kJr5Y0lDPHxIfBSM");
- NSLog(@"80VkGrmnvOCpI2iXfM7BhDYSLPcuAxdjTW3HEF");
- NSLog(@"koqByuR7zbZrwUnh8vLP16tV5mgGQXEx9THp");
- NSLog(@"rRE6nNFjbDSxZQ3");
- NSLog(@"DyUz372XK06nQHItkrVNFpoAb9BjfliTR");
- NSLog(@"Qhsj62idcpSVzvIZ0lWT9oM7gut3K8X5U");
- NSLog(@"IMbDHBnRyruKzZmUP5JtlXQLx");
- NSLog(@"rOVSc1NE7oyhvuFWdIJUtg");
- NSLog(@"Wo0ugelUY9M2dEsprLj3Kc");
- NSLog(@"lO6ykjbGRi807WfCJpex4AwqVd2NK9zI");
- }
- -(void)alCWvIaOnMZ:(UITableView*) alCWvIaOnMZ aA7zsaR:(UIControlEvents*) aA7zsaR ado3QT:(UITableView*) ado3QT ahE4SLRI:(UIInputView*) ahE4SLRI aWwkAZ:(UIRegion*) aWwkAZ a7BrdP:(UIButton*) a7BrdP anDmSpJf0je:(UIApplication*) anDmSpJf0je aCaFV38Z:(UIControlEvents*) aCaFV38Z aBx0UWu9Fm:(UIAlertView*) aBx0UWu9Fm avcds0Tgbza:(UIMenuItem*) avcds0Tgbza a728GZm:(UIDevice*) a728GZm aw5nxV:(UIImageView*) aw5nxV {
- NSLog(@"39YM0B5zGJNbnTjxIyS");
- NSLog(@"nHlANxmXTD3Uw7kc0CEYgRP2BWrz4to");
- NSLog(@"s5E1xwYdyvB8g4TDiWMSUOQP3IF");
- NSLog(@"cjdb72BnRNXziJTZCvpoewAI");
- NSLog(@"WeR0E8uqNf1DB3tL5XnG7HOYUSd");
- NSLog(@"kzB8uSgNwhc7U1avtKbXD53C0qEYr6PIpMi2fHRJ");
- NSLog(@"w9VlRpJCYHN");
- NSLog(@"FjUXqTyGQro7zJ8fMsIblEi4N2aW3DCgLktnRe");
- NSLog(@"GzoYT60tH5XbrepMdKUPWmOgAij4ZksyNvh");
- NSLog(@"jsUhaci2E7ANo45vuW9");
- NSLog(@"FXAn5odh7f4yuRHY0M9pIlWxrSOZ1");
- NSLog(@"ZRdaEo9GYWS7wOBMq");
- NSLog(@"653nLtcZT2QPpxURq47jY");
- NSLog(@"VQC2DlY1dhIB5EUe");
- NSLog(@"9CDrnXhWAoxf08yvusdI3Y");
- NSLog(@"x4MHefG1NVbE3OzUq8rk26vXBjc");
- NSLog(@"VQYTjeNxZ7rgD1oIlKG4fP");
- NSLog(@"t9LID4Ao5VqcwEv2B");
- NSLog(@"UXaZ6k0WVStRqxg3bslHrwYeMcNuoidyz5Tn");
- }
- -(void)abfX4oR:(UIEdgeInsets*) abfX4oR a7ycJ8:(UIActivity*) a7ycJ8 a9shOlCJ:(UIRegion*) a9shOlCJ alHdA36Nao:(UIMenuItem*) alHdA36Nao avnJTl9myVC:(UIRegion*) avnJTl9myVC aex3u2a6QsR:(UIKeyCommand*) aex3u2a6QsR a9fmkqi03:(UIMotionEffect*) a9fmkqi03 a4aSI8Oxzbt:(UIButton*) a4aSI8Oxzbt a95vx:(UIVisualEffectView*) a95vx {
- NSLog(@"5taSwWrLDxAspghTmJl3OfRbY9c");
- NSLog(@"RIYqk8bnyFmhVUDPNp670sZ4Jwu");
- NSLog(@"GqtkYOeCX03JjLrVNWgAQ9hB");
- NSLog(@"ISQAPgYhxzsoEO8mt");
- NSLog(@"X67AfMCobOt5NFvwQU0aR");
- NSLog(@"fvJO9BsT7HF5bQdgVlDhjrS1ao4PEnAWkp6RKN");
- NSLog(@"lYkNH8M1S4bLi5vW9raTyF2mD");
- NSLog(@"NZ6E8MgnkyUhOH");
- NSLog(@"u5YPMSiFdze");
- NSLog(@"EWikpw7XcGe2YMRS91oArKFU8PCO3s");
- NSLog(@"wBUoCEIDf9O8bW");
- NSLog(@"GKbpiZ20m3BX45Oo8sNw7MYCjtDkFgUS");
- NSLog(@"uZ9pk17MwXWj5");
- NSLog(@"TvxKHteEZRgMCYp");
- NSLog(@"ubRveTx6AOkwfEPXpJHan87");
- NSLog(@"mtecWMoUDfKGybZOxSlw0u");
- }
- -(void)auxTEcqD:(UICollectionView*) auxTEcqD aNW3V2OZK:(UIKeyCommand*) aNW3V2OZK awCN6tmxS:(UIAlertView*) awCN6tmxS aDozrxO:(UIDocument*) aDozrxO asmThOU:(UIWindow*) asmThOU ao8Glin0ZJN:(UITableView*) ao8Glin0ZJN aGxyO0QBLj:(UIEdgeInsets*) aGxyO0QBLj aICx4Ook0s:(UIButton*) aICx4Ook0s aWHYvS0:(UIRegion*) aWHYvS0 aBKPzsRwYS:(UIImage*) aBKPzsRwYS ayVoPBzp:(UIScreen*) ayVoPBzp ama1PnMd:(UIFont*) ama1PnMd {
- NSLog(@"CrdDOuEWYf0gANQk9p");
- NSLog(@"XPezdJFsbo39GywhTY8avNKkC1xgiuHcM");
- NSLog(@"fwRY8BbzqkrCgOQH5Z1ta9exF2LGJ");
- NSLog(@"jLY70DsA5i9C2TdQqeN14n3Rtp");
- NSLog(@"oaGr7xXSPf58il1DnudZY");
- NSLog(@"EXLYJ2Mb9mH0IWuF6rGefPQjaUO13Zht8gyocNz");
- NSLog(@"JvyOwnlYkMsdxGE2opPr");
- NSLog(@"kMf61JB9zlHDT7Z2AtPQRj0");
- NSLog(@"D9FcOT4ngL8f");
- NSLog(@"IZFYrpyLMnQ5X87BofcE6i3sAVqPR9x");
- NSLog(@"WSgiukhKZx0GpyIeHLjcdzoF47ar3JAlU5Vf");
- NSLog(@"sYTSgEJKtoDm97wAlGrdBkUQXMWcxbNRh");
- NSLog(@"vKSjgzWForyY6uI0LsB5PGdVQ");
- }
- -(void)abAjQz:(UIInputView*) abAjQz ayNlg:(UICollectionView*) ayNlg aowpKcxTGt8:(UICollectionView*) aowpKcxTGt8 aR3weQAni:(UIViewController*) aR3weQAni afFqz:(UIAlertView*) afFqz acJSLIZm:(UISearchBar*) acJSLIZm aq87QJZNaHO:(UILabel*) aq87QJZNaHO a1RoxOL:(UIImage*) a1RoxOL aOk1aHAIJ:(UISwitch*) aOk1aHAIJ aUZruBDkxRA:(UIControl*) aUZruBDkxRA a6pnPU5f:(UIEdgeInsets*) a6pnPU5f aG86iufp:(UICollectionView*) aG86iufp aHfBRz:(UIColor*) aHfBRz a0Uuaps:(UILabel*) a0Uuaps aGAmJpiU:(UIImageView*) aGAmJpiU {
- NSLog(@"d7xjSrDbeogHcE8i0WqlM");
- NSLog(@"83mTrfsjhKSxWOn");
- NSLog(@"TrLXaZjO9837KH");
- NSLog(@"yBI9hOU1H3qNsT5rPmcxZCpbi0Wvg4Mwa2ERe");
- NSLog(@"LdAYh5fNv2CicwVn8BR1jxH7ktlbaSurDJG0g");
- NSLog(@"au1GsRHLQCTm6jAcJiUYBwleDzS29");
- NSLog(@"s5jUBwkVHzJiFf3LXxcmSPK");
- NSLog(@"8eELb27AfroPJ3NFXqWsRylIYHm");
- NSLog(@"IWlvUnPg5oMidHAZyfx36");
- NSLog(@"SCuBmfn87GJ");
- NSLog(@"B9ETgV1ZzURlX");
- NSLog(@"VoFUdTGe97YjlHNXvuw13syr0DkA");
- NSLog(@"KbBIsHAE23ocdu6");
- NSLog(@"o4eQIk1qvAF");
- NSLog(@"bn157jcZdNeoH");
- }
- -(void)adWyo1uT2:(UIBarButtonItem*) adWyo1uT2 aYw3nc:(UIMotionEffect*) aYw3nc aOneTVu:(UIFontWeight*) aOneTVu a9wuHLnSjpR:(UILabel*) a9wuHLnSjpR aKjLsOHk:(UIVisualEffectView*) aKjLsOHk aj8y6i:(UILabel*) aj8y6i akNEMtW3:(UIFont*) akNEMtW3 aMuknb45A:(UIBarButtonItem*) aMuknb45A amrXzlHv7w:(UIUserInterfaceIdiom*) amrXzlHv7w a56FHCZKkW:(UIView*) a56FHCZKkW arIPU1:(UIEdgeInsets*) arIPU1 aVQ5z08:(UIMenuItem*) aVQ5z08 aSOs6QvwfI:(UIApplication*) aSOs6QvwfI adOVl:(UIApplication*) adOVl aMrjiu4kc8F:(UIView*) aMrjiu4kc8F axz2nGU1f:(UITableView*) axz2nGU1f aHnpUvtZEbW:(UIBarButtonItem*) aHnpUvtZEbW a2JfH3aNeRF:(UIAlertView*) a2JfH3aNeRF ak6dX:(UIFontWeight*) ak6dX {
- NSLog(@"SKGoJN9l6iHpfBRexXIdZUgyWFPCqkuacLT1hM32");
- NSLog(@"bUfwT5aG8z1pt0eL");
- NSLog(@"7KjO3uDlfW5mIH0SC2");
- NSLog(@"QKgNOU8atBYwlSjo4Tfy3WZFscEnqI1ivCL9dkP");
- NSLog(@"58lfkogRILGHM2cBZFv94qxCEJ6bXn");
- NSLog(@"1spKyHQcZnJjoFwaReq32d0VAPv");
- NSLog(@"dzTpOM2fGh6iPmNx7nVKvLjAX");
- NSLog(@"KskeMxjDO0iu5QI91A");
- NSLog(@"bn7QXvN3roVaOpclRs2KigB");
- NSLog(@"8M1ejkgKVUQazn2cb");
- NSLog(@"SQxCPXJK6TpZU");
- NSLog(@"Z12A3Ly4N5uKa9SkYfpFWz");
- NSLog(@"AjfovWp87NxyEC1");
- NSLog(@"H4CXytZsQD");
- NSLog(@"JTlBbH4UMYqO6vxKa8yDtzWcmrjN2XeG");
- NSLog(@"yphtjIdze0lFHOa9nBfTKoJMQc67NVS5");
- NSLog(@"KJPuiB7lsYxbo3mMch2jwdkDO");
- NSLog(@"tYORqfbc93akLJB7E");
- NSLog(@"lAr7uKwFMz1TvpxCVXg8n9");
- }
- @end
|