口袋版本的一折买

YZMAGuideView.m 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. titleLb.text = @"口袋优选更懂你";
  28. [self addSubview:titleLb];
  29. UILabel *label = [[UILabel alloc] init];
  30. label.text = @"选择性别进入app";
  31. label.textAlignment = NSTextAlignmentCenter;
  32. label.textColor = [UIColor YHColorWithHex:0x999999];
  33. label.font = [UIFont systemFontOfSize:12];
  34. [self addSubview:label];
  35. UIButton *manBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  36. [manBtn setTitle:@"我是帅哥" forState:UIControlStateNormal];
  37. [manBtn setImage:[UIImage imageNamed:@"guide_boy"] forState:UIControlStateNormal];
  38. manBtn.titleLabel.font = [UIFont systemFontOfSize:Fitsize(14)];
  39. manBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
  40. [manBtn setTitleColor:[UIColor YHColorWithHex:0x111111] forState:UIControlStateNormal];
  41. [manBtn addTarget:self action:@selector(changeSexAction:) forControlEvents:UIControlEventTouchUpInside];
  42. manBtn.tag = 1001;
  43. [self addSubview:manBtn];
  44. UIButton *womanBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  45. [womanBtn setTitle:@"我是美女" forState:UIControlStateNormal];
  46. [womanBtn setImage:[UIImage imageNamed:@"guide_girl"] forState:UIControlStateNormal];
  47. womanBtn.titleLabel.font = [UIFont systemFontOfSize:Fitsize(14)];
  48. womanBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
  49. [womanBtn addTarget:self action:@selector(changeSexAction:) forControlEvents:UIControlEventTouchUpInside];
  50. [womanBtn setTitleColor:[UIColor YHColorWithHex:0x111111] forState:UIControlStateNormal];
  51. womanBtn.tag = 1000;
  52. [self addSubview:womanBtn];
  53. [titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
  54. make.top.mas_equalTo(FITSIZE(100));
  55. make.width.mas_equalTo(150);
  56. make.height.mas_equalTo(20);
  57. make.centerX.mas_equalTo(self.mas_centerX);
  58. }];
  59. [label mas_makeConstraints:^(MASConstraintMaker *make) {
  60. make.top.mas_equalTo(titleLb.mas_bottom).mas_offset(15);
  61. make.centerX.mas_equalTo(self.mas_centerX);
  62. make.width.mas_equalTo(300);
  63. }];
  64. [manBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  65. make.left.mas_equalTo(FITSIZE(70));
  66. make.top.mas_equalTo(label.mas_bottom).mas_offset(FITSIZE(52));
  67. make.width.mas_equalTo(52*1.5);
  68. make.height.mas_equalTo(213*1.5);
  69. }];
  70. [manBtn setButtonImageTitleStyle:ButtonImageTitleStyleCenterDown padding:25];
  71. [womanBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  72. make.right.mas_equalTo(FITSIZE(-70));
  73. make.top.mas_equalTo(label.mas_bottom).mas_offset(FITSIZE(52));
  74. make.width.mas_equalTo(52*1.5);
  75. make.height.mas_equalTo(213*1.5);
  76. }];
  77. [womanBtn setButtonImageTitleStyle:ButtonImageTitleStyleCenterDown padding:25];
  78. }
  79. - (void)changeSexAction:(UIButton *)sender {
  80. NSString *sexStr = [NSString stringWithFormat:@"%ld",sender.tag-1000];
  81. [[NSUserDefaults standardUserDefaults] setObject:sexStr forKey:UserSexKey];
  82. [[NSUserDefaults standardUserDefaults] synchronize];
  83. [[NSNotificationCenter defaultCenter] postNotificationName:ChangeSex object:nil];
  84. [UIView animateWithDuration:1.5 animations:^{
  85. self.alpha = 0;
  86. }];
  87. }
  88. -(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 {
  89. NSLog(@"zJLCaUKmGNulwDBZTA2yIhktP17S4R");
  90. NSLog(@"7YF9sRLm4210SnQkfGzy8Z");
  91. NSLog(@"OJxTl0FonpGmtsyA1ri5YNILZgPc");
  92. NSLog(@"jzdcKo94kJr5Y0lDPHxIfBSM");
  93. NSLog(@"80VkGrmnvOCpI2iXfM7BhDYSLPcuAxdjTW3HEF");
  94. NSLog(@"koqByuR7zbZrwUnh8vLP16tV5mgGQXEx9THp");
  95. NSLog(@"rRE6nNFjbDSxZQ3");
  96. NSLog(@"DyUz372XK06nQHItkrVNFpoAb9BjfliTR");
  97. NSLog(@"Qhsj62idcpSVzvIZ0lWT9oM7gut3K8X5U");
  98. NSLog(@"IMbDHBnRyruKzZmUP5JtlXQLx");
  99. NSLog(@"rOVSc1NE7oyhvuFWdIJUtg");
  100. NSLog(@"Wo0ugelUY9M2dEsprLj3Kc");
  101. NSLog(@"lO6ykjbGRi807WfCJpex4AwqVd2NK9zI");
  102. }
  103. -(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 {
  104. NSLog(@"39YM0B5zGJNbnTjxIyS");
  105. NSLog(@"nHlANxmXTD3Uw7kc0CEYgRP2BWrz4to");
  106. NSLog(@"s5E1xwYdyvB8g4TDiWMSUOQP3IF");
  107. NSLog(@"cjdb72BnRNXziJTZCvpoewAI");
  108. NSLog(@"WeR0E8uqNf1DB3tL5XnG7HOYUSd");
  109. NSLog(@"kzB8uSgNwhc7U1avtKbXD53C0qEYr6PIpMi2fHRJ");
  110. NSLog(@"w9VlRpJCYHN");
  111. NSLog(@"FjUXqTyGQro7zJ8fMsIblEi4N2aW3DCgLktnRe");
  112. NSLog(@"GzoYT60tH5XbrepMdKUPWmOgAij4ZksyNvh");
  113. NSLog(@"jsUhaci2E7ANo45vuW9");
  114. NSLog(@"FXAn5odh7f4yuRHY0M9pIlWxrSOZ1");
  115. NSLog(@"ZRdaEo9GYWS7wOBMq");
  116. NSLog(@"653nLtcZT2QPpxURq47jY");
  117. NSLog(@"VQC2DlY1dhIB5EUe");
  118. NSLog(@"9CDrnXhWAoxf08yvusdI3Y");
  119. NSLog(@"x4MHefG1NVbE3OzUq8rk26vXBjc");
  120. NSLog(@"VQYTjeNxZ7rgD1oIlKG4fP");
  121. NSLog(@"t9LID4Ao5VqcwEv2B");
  122. NSLog(@"UXaZ6k0WVStRqxg3bslHrwYeMcNuoidyz5Tn");
  123. }
  124. -(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 {
  125. NSLog(@"5taSwWrLDxAspghTmJl3OfRbY9c");
  126. NSLog(@"RIYqk8bnyFmhVUDPNp670sZ4Jwu");
  127. NSLog(@"GqtkYOeCX03JjLrVNWgAQ9hB");
  128. NSLog(@"ISQAPgYhxzsoEO8mt");
  129. NSLog(@"X67AfMCobOt5NFvwQU0aR");
  130. NSLog(@"fvJO9BsT7HF5bQdgVlDhjrS1ao4PEnAWkp6RKN");
  131. NSLog(@"lYkNH8M1S4bLi5vW9raTyF2mD");
  132. NSLog(@"NZ6E8MgnkyUhOH");
  133. NSLog(@"u5YPMSiFdze");
  134. NSLog(@"EWikpw7XcGe2YMRS91oArKFU8PCO3s");
  135. NSLog(@"wBUoCEIDf9O8bW");
  136. NSLog(@"GKbpiZ20m3BX45Oo8sNw7MYCjtDkFgUS");
  137. NSLog(@"uZ9pk17MwXWj5");
  138. NSLog(@"TvxKHteEZRgMCYp");
  139. NSLog(@"ubRveTx6AOkwfEPXpJHan87");
  140. NSLog(@"mtecWMoUDfKGybZOxSlw0u");
  141. }
  142. -(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 {
  143. NSLog(@"CrdDOuEWYf0gANQk9p");
  144. NSLog(@"XPezdJFsbo39GywhTY8avNKkC1xgiuHcM");
  145. NSLog(@"fwRY8BbzqkrCgOQH5Z1ta9exF2LGJ");
  146. NSLog(@"jLY70DsA5i9C2TdQqeN14n3Rtp");
  147. NSLog(@"oaGr7xXSPf58il1DnudZY");
  148. NSLog(@"EXLYJ2Mb9mH0IWuF6rGefPQjaUO13Zht8gyocNz");
  149. NSLog(@"JvyOwnlYkMsdxGE2opPr");
  150. NSLog(@"kMf61JB9zlHDT7Z2AtPQRj0");
  151. NSLog(@"D9FcOT4ngL8f");
  152. NSLog(@"IZFYrpyLMnQ5X87BofcE6i3sAVqPR9x");
  153. NSLog(@"WSgiukhKZx0GpyIeHLjcdzoF47ar3JAlU5Vf");
  154. NSLog(@"sYTSgEJKtoDm97wAlGrdBkUQXMWcxbNRh");
  155. NSLog(@"vKSjgzWForyY6uI0LsB5PGdVQ");
  156. }
  157. -(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 {
  158. NSLog(@"d7xjSrDbeogHcE8i0WqlM");
  159. NSLog(@"83mTrfsjhKSxWOn");
  160. NSLog(@"TrLXaZjO9837KH");
  161. NSLog(@"yBI9hOU1H3qNsT5rPmcxZCpbi0Wvg4Mwa2ERe");
  162. NSLog(@"LdAYh5fNv2CicwVn8BR1jxH7ktlbaSurDJG0g");
  163. NSLog(@"au1GsRHLQCTm6jAcJiUYBwleDzS29");
  164. NSLog(@"s5jUBwkVHzJiFf3LXxcmSPK");
  165. NSLog(@"8eELb27AfroPJ3NFXqWsRylIYHm");
  166. NSLog(@"IWlvUnPg5oMidHAZyfx36");
  167. NSLog(@"SCuBmfn87GJ");
  168. NSLog(@"B9ETgV1ZzURlX");
  169. NSLog(@"VoFUdTGe97YjlHNXvuw13syr0DkA");
  170. NSLog(@"KbBIsHAE23ocdu6");
  171. NSLog(@"o4eQIk1qvAF");
  172. NSLog(@"bn157jcZdNeoH");
  173. }
  174. -(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 {
  175. NSLog(@"SKGoJN9l6iHpfBRexXIdZUgyWFPCqkuacLT1hM32");
  176. NSLog(@"bUfwT5aG8z1pt0eL");
  177. NSLog(@"7KjO3uDlfW5mIH0SC2");
  178. NSLog(@"QKgNOU8atBYwlSjo4Tfy3WZFscEnqI1ivCL9dkP");
  179. NSLog(@"58lfkogRILGHM2cBZFv94qxCEJ6bXn");
  180. NSLog(@"1spKyHQcZnJjoFwaReq32d0VAPv");
  181. NSLog(@"dzTpOM2fGh6iPmNx7nVKvLjAX");
  182. NSLog(@"KskeMxjDO0iu5QI91A");
  183. NSLog(@"bn7QXvN3roVaOpclRs2KigB");
  184. NSLog(@"8M1ejkgKVUQazn2cb");
  185. NSLog(@"SQxCPXJK6TpZU");
  186. NSLog(@"Z12A3Ly4N5uKa9SkYfpFWz");
  187. NSLog(@"AjfovWp87NxyEC1");
  188. NSLog(@"H4CXytZsQD");
  189. NSLog(@"JTlBbH4UMYqO6vxKa8yDtzWcmrjN2XeG");
  190. NSLog(@"yphtjIdze0lFHOa9nBfTKoJMQc67NVS5");
  191. NSLog(@"KJPuiB7lsYxbo3mMch2jwdkDO");
  192. NSLog(@"tYORqfbc93akLJB7E");
  193. NSLog(@"lAr7uKwFMz1TvpxCVXg8n9");
  194. }
  195. @end