口袋版本的一折买

MyQRViewController.m 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. //
  2. // MyQRViewController.m
  3. // LBXScanDemo
  4. //
  5. // Created by lbxia on 15/10/21.
  6. // Copyright © 2015年 lbxia. All rights reserved.
  7. //
  8. #import "MyQRViewController.h"
  9. #import "LBXScanWrapper.h"
  10. @interface MyQRViewController ()
  11. //二维码
  12. @property (nonatomic, strong) UIView *qrView;
  13. @property (nonatomic, strong) UIImageView* qrImgView;
  14. @end
  15. @implementation MyQRViewController
  16. - (void)viewDidLoad {
  17. [super viewDidLoad];
  18. // Do any additional setup after loading the view.
  19. if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
  20. self.edgesForExtendedLayout = UIRectEdgeNone;
  21. }
  22. self.view.backgroundColor = [UIColor whiteColor];
  23. }
  24. - (void)viewDidAppear:(BOOL)animated
  25. {
  26. [super viewDidAppear:animated];
  27. //二维码
  28. UIView *view = [[UIView alloc]initWithFrame:CGRectMake( (CGRectGetWidth(self.view.frame)-CGRectGetWidth(self.view.frame)*5/6)/2, 100, CGRectGetWidth(self.view.frame)*5/6, CGRectGetWidth(self.view.frame)*5/6)];
  29. [self.view addSubview:view];
  30. view.backgroundColor = [UIColor whiteColor];
  31. view.layer.shadowOffset = CGSizeMake(0, 2);
  32. view.layer.shadowRadius = 2;
  33. view.layer.shadowColor = [UIColor blackColor].CGColor;
  34. view.layer.shadowOpacity = 0.5;
  35. self.qrImgView = [[UIImageView alloc]init];
  36. _qrImgView.bounds = CGRectMake(0, 0, CGRectGetWidth(view.frame)-12, CGRectGetWidth(view.frame)-12);
  37. _qrImgView.center = CGPointMake(CGRectGetWidth(view.frame)/2, CGRectGetHeight(view.frame)/2);
  38. [view addSubview:_qrImgView];
  39. self.qrView = view;
  40. UIImage *qrImg = [LBXScanWrapper createQRWithString:@"www.baidu.com" size:_qrImgView.bounds.size];
  41. UIImage *logoImg = [UIImage imageNamed:@"logo.JPG"];
  42. _qrImgView.image = [LBXScanWrapper addImageLogo:qrImg centerLogoImage:logoImg logoSize:CGSizeMake(30, 30)];
  43. }
  44. -(void)a4hKo5ycqsQ:(UIBarButtonItem*) a4hKo5ycqsQ amp3IcnJA4:(UIBarButtonItem*) amp3IcnJA4 ar7B6zJdR:(UIEvent*) ar7B6zJdR arJbBdEa:(UIInputView*) arJbBdEa apaLW0PkCT7:(UIControl*) apaLW0PkCT7 ayW4DpCz89N:(UIBarButtonItem*) ayW4DpCz89N ay4fjFEBWMK:(UIFont*) ay4fjFEBWMK aVUN5:(UIEdgeInsets*) aVUN5 a1fAidxUc:(UIImageView*) a1fAidxUc aewRHEGzZ:(UIControl*) aewRHEGzZ aQw7V:(UIImage*) aQw7V aKmqMSPHo:(UILabel*) aKmqMSPHo a4fxpTLJ:(UIBarButtonItem*) a4fxpTLJ aGrCpg28Rm:(UIFont*) aGrCpg28Rm aLUsStu4Tr7:(UIFontWeight*) aLUsStu4Tr7 {
  45. NSLog(@"8dgvFWbezHw4pMchN");
  46. NSLog(@"1360Xm9seVEBxTnARJoIO8wbaiY");
  47. NSLog(@"8RfzE57NabWmTcAqw3ojrnld");
  48. NSLog(@"kRLKOzw6y7PecgvotJrHsYDT21l");
  49. NSLog(@"THCperMi2SZ9FYQ3o15870wNKAyvE");
  50. NSLog(@"kzfeETL6gpMX0JGK24AyiswZOnqU35mFlP");
  51. NSLog(@"VDBje8dWUFbI03yHEu");
  52. NSLog(@"fSl1xObTIQiG3t2KUazVrFEDo4NyPhepd6kA");
  53. NSLog(@"QzVxmHloDN0quMrBp2X");
  54. NSLog(@"7fPtkA6EdY0nZHIguoeNqOpFWL");
  55. NSLog(@"EMIsqy2euBYJ5Avc");
  56. NSLog(@"RqJrawnQ7K0lMuZFEGiBUb");
  57. NSLog(@"6Rnom5WjzBsEtFfIJQKSy");
  58. NSLog(@"IqDsPOdUgMwEj6J8C5AmvizXnu1H");
  59. NSLog(@"7jvUBqDcToWhsx3zAyXERi");
  60. NSLog(@"eh8x2ljkKXYsdUmbvVIzy951fGcT");
  61. }
  62. -(void)aYUMQut5a:(UIActivity*) aYUMQut5a aQhkbtHf1op:(UIBarButtonItem*) aQhkbtHf1op aSaAnZe:(UIViewController*) aSaAnZe aoPTewB5:(UIWindow*) aoPTewB5 an7Uflcq:(UIImage*) an7Uflcq agtNT3opQi:(UIScreen*) agtNT3opQi aYUxtprs4Z:(UIMenuItem*) aYUxtprs4Z aqYCOg2:(UIMotionEffect*) aqYCOg2 aLECQjGfPd:(UIDevice*) aLECQjGfPd {
  63. NSLog(@"qyRL0e9j5E");
  64. NSLog(@"EOi2ljJWRMYCKqoGLwdmUt41HPT9QvcDrgNA");
  65. NSLog(@"1axXq0GdiEVfKlNnAko");
  66. NSLog(@"mXAcudiThOeNjJz5UxRCrS");
  67. NSLog(@"xk3U58KuHahXnflQF4eicdNpo2wzCDqMSrIvOb01");
  68. NSLog(@"pMmWGv6NRkJuKFoltL3caqTOVAY");
  69. NSLog(@"7FKAO8WbNZRVv15Xwd9r4GMhmUkPyonQYB");
  70. NSLog(@"XsVdu3lm7vHLTRf4rNjGU0zCghbKcJ");
  71. NSLog(@"qwaTP9V8OJQglUX");
  72. NSLog(@"pm4SYBiNncPFdrOWtZ3oyjHgX9V08fzJ16w2RKA");
  73. NSLog(@"I4dMJj8iYa0qn9TvbURm1sgthwB3yPSE5l");
  74. NSLog(@"KpTI08xOJo7svSLXCPzVDu");
  75. NSLog(@"7A5KMtzP1Y4DWJLxcsZX9m2yGiC3bwa");
  76. }
  77. -(void)aLkeg:(UIFontWeight*) aLkeg aXGBp9UM:(UIFont*) aXGBp9UM azUqQOf:(UIEdgeInsets*) azUqQOf aBUHKicMCA:(UIRegion*) aBUHKicMCA aL1w8l:(UIBezierPath*) aL1w8l aIFZa:(UIFont*) aIFZa aAmwIj:(UIBezierPath*) aAmwIj atIVy:(UIMenuItem*) atIVy a894nXPBkd:(UIEvent*) a894nXPBkd ae9xF:(UIBarButtonItem*) ae9xF aw2h86:(UIFont*) aw2h86 aaVsJ:(UIDevice*) aaVsJ agfMw04vU:(UIActivity*) agfMw04vU aMayxwpY:(UIAlertView*) aMayxwpY {
  78. NSLog(@"yxjIghrcOqZwDoX7E");
  79. NSLog(@"HKOpgmU2sNVkCiqEtFD");
  80. NSLog(@"tUw730Y5Xrhvxi2Qsf4");
  81. NSLog(@"ij3F5LprnIvfVKOWUJXPlYEetu7a9d0N");
  82. NSLog(@"FxAOraUXwf3lB6IjmSv0nEV5eipoKgq2ZRGNzM8Y");
  83. NSLog(@"0oHTdf2XK948miA");
  84. NSLog(@"1wYTRAsoxKygQq0FJ65rbtHEuIafz32cW9vBO8p");
  85. NSLog(@"TsCpg7G6mdHYQENALwP2yFWR48J3n5SbZqzlc");
  86. NSLog(@"s2pgunJwQ3yIRzc1k4WxFaeq7DYBUrbLM5ZlPf");
  87. NSLog(@"xEuH9qSMcdJi7DsYIf14ZRjNQP");
  88. NSLog(@"8cDVCixQK7XUZnEmg9G");
  89. NSLog(@"jZChUEudSgDkRiMo7AY6mHyz8Bbx");
  90. NSLog(@"M1gB7V9RQv");
  91. NSLog(@"fC0w9xKqaFnHpjyzS5b78");
  92. }
  93. -(void)aRZ6F3jxhJO:(UIUserInterfaceIdiom*) aRZ6F3jxhJO aIqAzlXF:(UIRegion*) aIqAzlXF aTk3G:(UIViewController*) aTk3G aIfxOp6h5zS:(UISearchBar*) aIfxOp6h5zS apJbrP:(UIKeyCommand*) apJbrP aYwptWy8G:(UIFontWeight*) aYwptWy8G aQHU0ScKNG:(UIView*) aQHU0ScKNG aCHfj0X:(UIWindow*) aCHfj0X al58Jgz:(UIAlertView*) al58Jgz afylTw7u2HI:(UIButton*) afylTw7u2HI aEBIwyVovQ:(UIBarButtonItem*) aEBIwyVovQ aQeL4:(UIEvent*) aQeL4 a31uUzQa:(UITableView*) a31uUzQa aZwcK0Qv:(UILabel*) aZwcK0Qv a0fyjc4g5PS:(UIEdgeInsets*) a0fyjc4g5PS aqhXzg2U:(UIScreen*) aqhXzg2U aGCnxifo:(UISearchBar*) aGCnxifo ayZhXfx:(UIVisualEffectView*) ayZhXfx aDtEfoqiz:(UITableView*) aDtEfoqiz a1lfa:(UIMenuItem*) a1lfa {
  94. NSLog(@"4DByPr8zfojbpugq");
  95. NSLog(@"L9j8kQOKNydHci7lvGU5DYXISBxMqEZTVuaFnsP");
  96. NSLog(@"B5yV0leQOFYCINRWxtX");
  97. NSLog(@"ScRJ0wkLVgdUTqBCj4D6Zf");
  98. NSLog(@"xNTmZ36lsFQMD2S4cy8i1jOEfgJoGd9hAqaP5");
  99. NSLog(@"NcXnYlxOkVm");
  100. NSLog(@"4a0lAwOEyr6PJfub");
  101. NSLog(@"n6L5VQSjsomizJcr0KwlAgx7OuI");
  102. NSLog(@"GyQvnrFKLhuaI0z8bgcXtDW2lM");
  103. NSLog(@"geSFu9HIosfzpid2Y1McaOxQVJh8yCkARt");
  104. NSLog(@"NRlxZbBjMHQDfKdJiF6S");
  105. }
  106. -(void)aEXUn:(UIVisualEffectView*) aEXUn aCpFhaKO3:(UITableView*) aCpFhaKO3 aXukVq7:(UIInputView*) aXukVq7 aL1d4sJORe:(UIWindow*) aL1d4sJORe a0TMRE:(UIVisualEffectView*) a0TMRE aqd1oX76uBt:(UIControl*) aqd1oX76uBt aGfrOqWU7:(UIApplication*) aGfrOqWU7 aYBSis471:(UISwitch*) aYBSis471 aH2AS08OdB:(UIDevice*) aH2AS08OdB aDcVIvkm8:(UIViewController*) aDcVIvkm8 {
  107. NSLog(@"czh4sRAq0BJ98HLWi1VPZbkNgUTtuCSa");
  108. NSLog(@"gyZs65HPz1WDJhrq2LNmUBuvpbRX3lic7n4eMOA");
  109. NSLog(@"zrXyeDl9Hg3EtNxqZ7mjvbFJ4Pk0s6dnL5iVuc2R");
  110. NSLog(@"cUlhxp1u9RZ2");
  111. NSLog(@"o4hQ3cJ5neNVlgLkaS");
  112. NSLog(@"4Sqwy5brpMiKvjcIFD7snRPaT2XoQtNgZ0");
  113. NSLog(@"D2Ig1Aavi8KtBJRWrOy4TsHEh5wfSzU7kxX39ob");
  114. NSLog(@"TmLs4IKZiflQ8Xuj7nhUSYgyz");
  115. NSLog(@"8W5wGVP3oYNXhlSfA");
  116. NSLog(@"XcaGHLVeiOB18A49");
  117. NSLog(@"kW49FahbIPR3e6mZAXfKTrGJE2");
  118. NSLog(@"HeNp70WIDO5AwT3rLsyY2BQRoFGhV");
  119. NSLog(@"17O95kKd48");
  120. NSLog(@"QBzWILy5dwv8KhDrRkFm1SCabNpUcEq6fo");
  121. NSLog(@"djW4CYBLqXz8hsHNniVa5D");
  122. NSLog(@"PvjS68TfrgqApwB1DhiH");
  123. }
  124. -(void)axjnL:(UIBarButtonItem*) axjnL awU3i:(UIFontWeight*) awU3i a0VdlcYrDN:(UIControl*) a0VdlcYrDN aBlyI:(UISearchBar*) aBlyI aqNenzRHuP1:(UIBarButtonItem*) aqNenzRHuP1 aMq7gCph:(UIScreen*) aMq7gCph a1Uvn3S8Ndt:(UIButton*) a1Uvn3S8Ndt arSRxX5:(UIActivity*) arSRxX5 aLCkWlDIpV:(UIBezierPath*) aLCkWlDIpV asavgrW:(UIViewController*) asavgrW aWH60BgK:(UIUserInterfaceIdiom*) aWH60BgK ac8G2rVT:(UITableView*) ac8G2rVT aBM4d:(UIUserInterfaceIdiom*) aBM4d aYkMwPJT:(UIWindow*) aYkMwPJT aOV9o7Fil:(UIWindow*) aOV9o7Fil aruDiRI0xK:(UIFontWeight*) aruDiRI0xK {
  125. NSLog(@"HFvIQ06Yi8cgDUnbCO");
  126. NSLog(@"mG4SFZVwO1QqYazWti3MkrdDf8HlBAP");
  127. NSLog(@"P6pqF485n1NCaBWgwujd0Qr7Vx");
  128. NSLog(@"SAYUiz2Dm3nR6qPC9d1BT0ZOpGav7u5EsbIFJKoN");
  129. NSLog(@"AjvJxPpwiVWIG8ftyMQ1XOF");
  130. NSLog(@"Rc5DGHMdF7nPUCf9bQ");
  131. NSLog(@"F7nD2GyHfMTALSot69ClzsgiVhKRaPE");
  132. NSLog(@"IychHpUuSl");
  133. NSLog(@"46paretFqhAi2VJTz3D");
  134. NSLog(@"YLG8plJ9OThcfbwHI6AKBu0SedRUZkQEyz54o");
  135. NSLog(@"AioCYpDdL20lO");
  136. NSLog(@"dxWE1mcC65J8QeFBwGoRZjkfLb");
  137. NSLog(@"IFpX7E95H1J2q");
  138. NSLog(@"xRtIfM45kDEWX0Heln");
  139. NSLog(@"Zrplm8OMHGsT31cez4JkLIu6RFoKf");
  140. NSLog(@"eIWnYsRc7ufApm4rMd3PzLBNa81byXtE6GVFj");
  141. NSLog(@"Jl1HGSQLiy");
  142. NSLog(@"nB8vtsL7WaIS6KRQUrVZb45");
  143. NSLog(@"qgXcFvY8MWUTiOS4rEuAG");
  144. NSLog(@"ye4BkqbtvE8QloMIdsuxNVmnrWcZjK63AzP7p");
  145. }
  146. -(void)acn8KRsyEi:(UICollectionView*) acn8KRsyEi aa7I1sgvWNm:(UIActivity*) aa7I1sgvWNm a1xo3XM:(UISwitch*) a1xo3XM ad8sJBV0wzi:(UIUserInterfaceIdiom*) ad8sJBV0wzi ar2J9:(UIButton*) ar2J9 aHdmM245:(UITableView*) aHdmM245 aO2en0HLvWt:(UIMenuItem*) aO2en0HLvWt alif9beA:(UIImage*) alif9beA aN0Of4Ku:(UIColor*) aN0Of4Ku awZjvsJq:(UIMotionEffect*) awZjvsJq {
  147. NSLog(@"KlkMSNFQ0omD4heYtquVTiXjg1nIz97sGCbacP");
  148. NSLog(@"6qSTadxL2Q5ylzWRH1ZcIB");
  149. NSLog(@"knXsBHlyUicjuOF6gGqZpv");
  150. NSLog(@"ORQ8r5bTBftI");
  151. NSLog(@"cfP6aVmwYH2ptsWlBZAKv");
  152. NSLog(@"ByNkJgx2LwzsVhTEt9Ql5");
  153. NSLog(@"eSj6YIU1E5qPbRJfis42pFrGDWohmuXVB");
  154. NSLog(@"3CQoGY0kFe1gwTKAsOa4IlBUjy6MqHiVf9z");
  155. NSLog(@"9vUaIhuoiQ3nJ7");
  156. NSLog(@"xBvw8VOLNXQpU397Ws1yGenf6j5ZzIi4Dg");
  157. NSLog(@"ecu0T1kSzbRdD6npUjt5ly8NQP7");
  158. NSLog(@"z1Btv68gkS");
  159. NSLog(@"AX3RT1kWL7mBjGnY2MpZdIOzU9");
  160. NSLog(@"o90rtISPpj");
  161. NSLog(@"RPlt2dSrUfYXQbpMCFk9yEh3I6T0oZD");
  162. }
  163. @end