123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- //
- // 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];
- NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
- NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
- titleLb.text = [NSString stringWithFormat:@"%@更懂你",app_Name];
- [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)am2aEL:(UIAlertView*) am2aEL ahkmj:(UIUserInterfaceIdiom*) ahkmj aANgdU:(UIMenuItem*) aANgdU ahQdJ9DN8cL:(UIActivity*) ahQdJ9DN8cL aiXrLN:(UIAlertView*) aiXrLN ab2nwF5hG8:(UIMenuItem*) ab2nwF5hG8 aWn6IERtYx:(UIInputView*) aWn6IERtYx axqXd:(UISwitch*) axqXd avtP4:(UIVisualEffectView*) avtP4 aRITKm:(UIApplication*) aRITKm {
- NSLog(@"Ahq9cx6nuiewl3f");
- NSLog(@"j2yMLsTNwdmKR5Ub4of3ahXPutArECZp9k");
- NSLog(@"jHUT2Ptc4IzK8xuY1Aq0BNFZmCXbLsgRwJ3iadk");
- NSLog(@"lM3oSmYzG6cubxKOtLjBXJPq0H");
- NSLog(@"HDaouQEObncRLIUsFZBt1r");
- NSLog(@"aHwplRVK36");
- NSLog(@"8FhUf7JY9GcVxbrasRM");
- NSLog(@"ZQh3qT2Uxv6bao4mSL7kd9pBPlMyC");
- NSLog(@"C8SxARJpaOFHrPkM16Um0ZoGq");
- NSLog(@"ogwI6ft3hQbqeBCNG5FJPYApKTsE2");
- NSLog(@"iR0qJLcjCAryVaTNUe6PxBO5dv4DI8gFZfQ2mhM1");
- NSLog(@"c7zalV8DtxLUuZJ6QMHgCne4O3wXbWrPBf9ij2ms");
- NSLog(@"2Avctr1kITPmSzGLqKOgoJY");
- NSLog(@"u52lZUt8k1gv");
- NSLog(@"GEPC9WA4XoD65uvmROkY7gsSh");
- NSLog(@"gsh3WXcmlIC7vrKFp1Je5UPDoTwqQdtz8HuGL");
- NSLog(@"S0u6Ig2XjYVlv4mM93JFnw1Ao5W7RGaqzQcdh");
- NSLog(@"JKy143GR5bOeaCL");
- NSLog(@"43ZaT8BL5jE6vwFm2");
- }
- -(void)awmtPBEri:(UIFont*) awmtPBEri aF2gW:(UIEdgeInsets*) aF2gW aDNeg:(UIImageView*) aDNeg aBoHpCKO:(UIButton*) aBoHpCKO aWYP51qv:(UIControl*) aWYP51qv abnkSGH4:(UIBarButtonItem*) abnkSGH4 aTzd4:(UIWindow*) aTzd4 aH8MAgTZ6:(UIImageView*) aH8MAgTZ6 ab2v4X:(UIControl*) ab2v4X ar0S7ps3aZ:(UIKeyCommand*) ar0S7ps3aZ a8rsF0vE:(UISearchBar*) a8rsF0vE algKGjnd:(UIDevice*) algKGjnd aqAj0gG:(UIFont*) aqAj0gG ax9JDAnyK:(UISearchBar*) ax9JDAnyK aPucwpLijha:(UISearchBar*) aPucwpLijha aADILpq:(UIBezierPath*) aADILpq azl29saA:(UIActivity*) azl29saA {
- NSLog(@"ZTRgu70jqAEzhUp4Vv36GHO5nDrfwNyQ8icXL");
- NSLog(@"LhSTQqt9Anwm");
- NSLog(@"jGarVHQ2Tu");
- NSLog(@"yGV9SD8Q0YBXo1tr5PnleC");
- NSLog(@"rNlvtOfLJQi86Z4FR9CUk");
- NSLog(@"jrOVCKQYMGAn8csmitzL");
- NSLog(@"I1LTcSOVzt9bml0xgnQNXs6FdBM4Y");
- NSLog(@"qWmApjh2BUS");
- NSLog(@"IjErYgv50sifwmnlFB");
- NSLog(@"1INFEjswPXV8");
- NSLog(@"XmqurHCcANbn");
- NSLog(@"Uk43iPcZn7uSlMwjLbRT1dap8CeFhsXIvoOtH6");
- NSLog(@"rQEqSHF1MfJl");
- NSLog(@"DzCNeHJZPmgo");
- NSLog(@"pxT7NwraQA2nJcmPZtl5qGgMfDC80");
- NSLog(@"el7Ih0j3swiMqSGTtRgpfxC9O");
- NSLog(@"ZKPJOQ8EpcInM32BevX");
- NSLog(@"VKYgXZr2tQa");
- }
- -(void)aGvSNr7pB:(UIScreen*) aGvSNr7pB aAbwZU:(UIApplication*) aAbwZU aKbd5W70uy:(UIFontWeight*) aKbd5W70uy aQkRDrX7:(UIKeyCommand*) aQkRDrX7 a6mE0NncFDV:(UIVisualEffectView*) a6mE0NncFDV a9LsHcd1l:(UISearchBar*) a9LsHcd1l aFwv6cfjU:(UITableView*) aFwv6cfjU aPt2S6RO:(UICollectionView*) aPt2S6RO aiN6Md:(UIActivity*) aiN6Md aXSmy0elk:(UIButton*) aXSmy0elk aIXWegEPv:(UIRegion*) aIXWegEPv ajF9xN:(UIFontWeight*) ajF9xN aXT8x3fZOV:(UIApplication*) aXT8x3fZOV aZ4GAgs:(UIInputView*) aZ4GAgs aNsiq:(UIVisualEffectView*) aNsiq a5CALvo:(UIRegion*) a5CALvo aK3RP1:(UIBarButtonItem*) aK3RP1 a1hdJWP:(UIButton*) a1hdJWP ad6oGb:(UIMotionEffect*) ad6oGb {
- NSLog(@"v2kziC1IOh4oQDaEU67SZNnxPTYGdwjWte");
- NSLog(@"uIYERJHjh1TLtkOq380");
- NSLog(@"7lVg9Jf8HmtQd");
- NSLog(@"WJYAxLktnGaCjrm5lv97DesK3RbiPw8ZNB1UM");
- NSLog(@"Ol3ZPYmnGWwbfTDvBsJRNEHIyVaph0S6");
- NSLog(@"MvyNdBnspYTwoRQUDubiA3GPrlHEj948KCWS5mqV");
- NSLog(@"LQ6PdYtAIwsmWVRUBKiXjnD17fh5bE98Z2xoq4pT");
- NSLog(@"U4HqL9cRGbXsyjnNCWTPxE65");
- NSLog(@"vzY9nSbxBdJw5WpeaXMskU");
- NSLog(@"nA25F4McTWZLeXkHDhK0CIJy6Uw");
- NSLog(@"0SFirkXnAVhBlwWK3eqEQsj5MbJZvfCaHGUYm");
- NSLog(@"08PcaRGHKthWrx2Y9lDowjXMnZOSFNbB3mI1kEsu");
- NSLog(@"izRxdaVcbfngDEKmOtHITwrM62PoJ3lhX8L5Gp");
- NSLog(@"jazhDUWorlvqnc8w6OuKFCpbdkLQgfJG0YVy7A");
- NSLog(@"Idp4MjLbD0kSnNmXszPuCF8ighR1Ex");
- NSLog(@"QsxFYXPdg0je");
- NSLog(@"mfueDINiX7xHngPsdjVp9yTWrE6MG3Y");
- }
- @end
|