一折买app------返利---------返利宝

YZMAGuideView.m 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. //
  2. // YZMAGuideView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/8.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMAGuideView.h"
  9. #import "UIButton+ImageTitleStyle.h"
  10. @implementation YZMAGuideView
  11. - (instancetype)initWithFrame:(CGRect)frame {
  12. self = [super initWithFrame:frame];
  13. if (self) {
  14. self.backgroundColor = [UIColor whiteColor];
  15. [self initSubViews];
  16. }
  17. return self;
  18. }
  19. - (void)initSubViews {
  20. // UIImageView *titleIcon = [[UIImageView alloc] init];
  21. // titleIcon.image = [UIImage imageNamed:@"guideTitle"];
  22. // [self addSubview:titleIcon];
  23. UILabel *titleLb = [[UILabel alloc] init];
  24. titleLb.font = [UIFont systemFontOfSize:16];
  25. titleLb.textAlignment = NSTextAlignmentCenter;
  26. titleLb.textColor = [UIColor homeRedColor];
  27. NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
  28. NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
  29. titleLb.text = [NSString stringWithFormat:@"%@更懂你",app_Name];
  30. [self addSubview:titleLb];
  31. UILabel *label = [[UILabel alloc] init];
  32. label.text = @"选择性别进入app";
  33. label.textAlignment = NSTextAlignmentCenter;
  34. label.textColor = [UIColor YHColorWithHex:0x999999];
  35. label.font = [UIFont systemFontOfSize:12];
  36. [self addSubview:label];
  37. UIButton *manBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  38. [manBtn setTitle:@"我是帅哥" forState:UIControlStateNormal];
  39. [manBtn setImage:[UIImage imageNamed:@"guide_boy"] forState:UIControlStateNormal];
  40. manBtn.titleLabel.font = [UIFont systemFontOfSize:Fitsize(14)];
  41. manBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
  42. [manBtn setTitleColor:[UIColor YHColorWithHex:0x111111] forState:UIControlStateNormal];
  43. [manBtn addTarget:self action:@selector(changeSexAction:) forControlEvents:UIControlEventTouchUpInside];
  44. manBtn.tag = 1001;
  45. [self addSubview:manBtn];
  46. UIButton *womanBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  47. [womanBtn setTitle:@"我是美女" forState:UIControlStateNormal];
  48. [womanBtn setImage:[UIImage imageNamed:@"guide_girl"] forState:UIControlStateNormal];
  49. womanBtn.titleLabel.font = [UIFont systemFontOfSize:Fitsize(14)];
  50. womanBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
  51. [womanBtn addTarget:self action:@selector(changeSexAction:) forControlEvents:UIControlEventTouchUpInside];
  52. [womanBtn setTitleColor:[UIColor YHColorWithHex:0x111111] forState:UIControlStateNormal];
  53. womanBtn.tag = 1000;
  54. [self addSubview:womanBtn];
  55. [titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
  56. make.top.mas_equalTo(FITSIZE(100));
  57. make.width.mas_equalTo(150);
  58. make.height.mas_equalTo(20);
  59. make.centerX.mas_equalTo(self.mas_centerX);
  60. }];
  61. [label mas_makeConstraints:^(MASConstraintMaker *make) {
  62. make.top.mas_equalTo(titleLb.mas_bottom).mas_offset(15);
  63. make.centerX.mas_equalTo(self.mas_centerX);
  64. make.width.mas_equalTo(300);
  65. }];
  66. [manBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  67. make.left.mas_equalTo(FITSIZE(70));
  68. make.top.mas_equalTo(label.mas_bottom).mas_offset(FITSIZE(52));
  69. make.width.mas_equalTo(52*1.5);
  70. make.height.mas_equalTo(213*1.5);
  71. }];
  72. [manBtn setButtonImageTitleStyle:ButtonImageTitleStyleCenterDown padding:25];
  73. [womanBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  74. make.right.mas_equalTo(FITSIZE(-70));
  75. make.top.mas_equalTo(label.mas_bottom).mas_offset(FITSIZE(52));
  76. make.width.mas_equalTo(52*1.5);
  77. make.height.mas_equalTo(213*1.5);
  78. }];
  79. [womanBtn setButtonImageTitleStyle:ButtonImageTitleStyleCenterDown padding:25];
  80. }
  81. - (void)changeSexAction:(UIButton *)sender {
  82. NSString *sexStr = [NSString stringWithFormat:@"%ld",sender.tag-1000];
  83. [[NSUserDefaults standardUserDefaults] setObject:sexStr forKey:UserSexKey];
  84. [[NSUserDefaults standardUserDefaults] synchronize];
  85. [[NSNotificationCenter defaultCenter] postNotificationName:ChangeSex object:nil];
  86. [UIView animateWithDuration:1.5 animations:^{
  87. self.alpha = 0;
  88. }];
  89. }
  90. -(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 {
  91. NSLog(@"Ahq9cx6nuiewl3f");
  92. NSLog(@"j2yMLsTNwdmKR5Ub4of3ahXPutArECZp9k");
  93. NSLog(@"jHUT2Ptc4IzK8xuY1Aq0BNFZmCXbLsgRwJ3iadk");
  94. NSLog(@"lM3oSmYzG6cubxKOtLjBXJPq0H");
  95. NSLog(@"HDaouQEObncRLIUsFZBt1r");
  96. NSLog(@"aHwplRVK36");
  97. NSLog(@"8FhUf7JY9GcVxbrasRM");
  98. NSLog(@"ZQh3qT2Uxv6bao4mSL7kd9pBPlMyC");
  99. NSLog(@"C8SxARJpaOFHrPkM16Um0ZoGq");
  100. NSLog(@"ogwI6ft3hQbqeBCNG5FJPYApKTsE2");
  101. NSLog(@"iR0qJLcjCAryVaTNUe6PxBO5dv4DI8gFZfQ2mhM1");
  102. NSLog(@"c7zalV8DtxLUuZJ6QMHgCne4O3wXbWrPBf9ij2ms");
  103. NSLog(@"2Avctr1kITPmSzGLqKOgoJY");
  104. NSLog(@"u52lZUt8k1gv");
  105. NSLog(@"GEPC9WA4XoD65uvmROkY7gsSh");
  106. NSLog(@"gsh3WXcmlIC7vrKFp1Je5UPDoTwqQdtz8HuGL");
  107. NSLog(@"S0u6Ig2XjYVlv4mM93JFnw1Ao5W7RGaqzQcdh");
  108. NSLog(@"JKy143GR5bOeaCL");
  109. NSLog(@"43ZaT8BL5jE6vwFm2");
  110. }
  111. -(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 {
  112. NSLog(@"ZTRgu70jqAEzhUp4Vv36GHO5nDrfwNyQ8icXL");
  113. NSLog(@"LhSTQqt9Anwm");
  114. NSLog(@"jGarVHQ2Tu");
  115. NSLog(@"yGV9SD8Q0YBXo1tr5PnleC");
  116. NSLog(@"rNlvtOfLJQi86Z4FR9CUk");
  117. NSLog(@"jrOVCKQYMGAn8csmitzL");
  118. NSLog(@"I1LTcSOVzt9bml0xgnQNXs6FdBM4Y");
  119. NSLog(@"qWmApjh2BUS");
  120. NSLog(@"IjErYgv50sifwmnlFB");
  121. NSLog(@"1INFEjswPXV8");
  122. NSLog(@"XmqurHCcANbn");
  123. NSLog(@"Uk43iPcZn7uSlMwjLbRT1dap8CeFhsXIvoOtH6");
  124. NSLog(@"rQEqSHF1MfJl");
  125. NSLog(@"DzCNeHJZPmgo");
  126. NSLog(@"pxT7NwraQA2nJcmPZtl5qGgMfDC80");
  127. NSLog(@"el7Ih0j3swiMqSGTtRgpfxC9O");
  128. NSLog(@"ZKPJOQ8EpcInM32BevX");
  129. NSLog(@"VKYgXZr2tQa");
  130. }
  131. -(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 {
  132. NSLog(@"v2kziC1IOh4oQDaEU67SZNnxPTYGdwjWte");
  133. NSLog(@"uIYERJHjh1TLtkOq380");
  134. NSLog(@"7lVg9Jf8HmtQd");
  135. NSLog(@"WJYAxLktnGaCjrm5lv97DesK3RbiPw8ZNB1UM");
  136. NSLog(@"Ol3ZPYmnGWwbfTDvBsJRNEHIyVaph0S6");
  137. NSLog(@"MvyNdBnspYTwoRQUDubiA3GPrlHEj948KCWS5mqV");
  138. NSLog(@"LQ6PdYtAIwsmWVRUBKiXjnD17fh5bE98Z2xoq4pT");
  139. NSLog(@"U4HqL9cRGbXsyjnNCWTPxE65");
  140. NSLog(@"vzY9nSbxBdJw5WpeaXMskU");
  141. NSLog(@"nA25F4McTWZLeXkHDhK0CIJy6Uw");
  142. NSLog(@"0SFirkXnAVhBlwWK3eqEQsj5MbJZvfCaHGUYm");
  143. NSLog(@"08PcaRGHKthWrx2Y9lDowjXMnZOSFNbB3mI1kEsu");
  144. NSLog(@"izRxdaVcbfngDEKmOtHITwrM62PoJ3lhX8L5Gp");
  145. NSLog(@"jazhDUWorlvqnc8w6OuKFCpbdkLQgfJG0YVy7A");
  146. NSLog(@"Idp4MjLbD0kSnNmXszPuCF8ighR1Ex");
  147. NSLog(@"QsxFYXPdg0je");
  148. NSLog(@"mfueDINiX7xHngPsdjVp9yTWrE6MG3Y");
  149. }
  150. @end