两折买改口袋样式

shareView.m 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. //
  2. // shareView.m
  3. // KXYiMa
  4. //
  5. // Created by jcymac on 2018/1/24.
  6. // Copyright © 2018年 jcymac. All rights reserved.
  7. //
  8. #import "shareView.h"
  9. #import "HYUMShareManager.h"
  10. #import "WXApi.h"
  11. @interface shareView()
  12. @property(nonatomic,strong)NSString *title;
  13. @property(nonatomic,strong)NSString *desc;
  14. @property(nonatomic,strong)NSString *imageUrl;
  15. @property(nonatomic,strong)NSString *webUrl;
  16. @property(nonatomic,strong)UIImage *img;
  17. @end
  18. @implementation shareView
  19. -(void)awakeFromNib{
  20. [super awakeFromNib];
  21. [self.shareButtonOne addTarget:self action:@selector(shareOneAction) forControlEvents:UIControlEventTouchUpInside];
  22. [self.shareButtonTwo addTarget:self action:@selector(shareTwoAction) forControlEvents:UIControlEventTouchUpInside];
  23. }
  24. //分享到微信
  25. -(void)shareOneAction{
  26. NSLog(@"shareOneAction");
  27. if (![WXApi isWXAppInstalled]) {
  28. [MBProgressHUD showMessage:@"没有安装微信客户端"];
  29. if (self.shareButtonOneBlock) {
  30. self.shareButtonOneBlock();
  31. }
  32. return;
  33. }
  34. if (self.shareType==ShareTypeUrl) {
  35. [[HYUMShareManager shareInstance] shareWebPagewithplatformType:UMSocialPlatformType_WechatSession title:self.title desc:self.desc thumImageUrl:self.imageUrl webpageUrl:self.webUrl];
  36. }else if(self.shareType==ShareTypeImage){
  37. if (self.imgUrl.length > 0) {
  38. [MobClick event:InvateImageWeiXin label:self.imgUrl];
  39. }
  40. [[HYUMShareManager shareInstance] shareImageWithplatformType:UMSocialPlatformType_WechatSession withImg:self.img];
  41. }
  42. if (self.shareButtonOneBlock) {
  43. self.shareButtonOneBlock();
  44. }
  45. }
  46. //分享到朋友圈
  47. -(void)shareTwoAction{
  48. NSLog(@"shareTwoAction");
  49. if (![WXApi isWXAppInstalled]) {
  50. [MBProgressHUD showMessage:@"没有安装微信客户端"];
  51. if (self.shareButtonTwoBlock) {
  52. self.shareButtonTwoBlock();
  53. }
  54. return;
  55. }
  56. if (self.shareType==ShareTypeUrl) {
  57. [[HYUMShareManager shareInstance] shareWebPagewithplatformType:UMSocialPlatformType_WechatTimeLine title:self.title desc:self.desc thumImageUrl:self.imageUrl webpageUrl:self.webUrl];
  58. }else if(self.shareType==ShareTypeImage){
  59. if (self.imgUrl.length > 0) {
  60. [MobClick event:InvateImageWeiXinCircle label:self.imgUrl];
  61. }
  62. [[HYUMShareManager shareInstance] shareImageWithplatformType:UMSocialPlatformType_WechatTimeLine withImg:self.img];
  63. }
  64. if (self.shareButtonTwoBlock) {
  65. self.shareButtonTwoBlock();
  66. }
  67. }
  68. -(void)shareWeChatTitle:(NSString *)title desc:(NSString *)desc imageUrl:(NSString *)imageUrl webUrl:(NSString *)webUrl{
  69. self.shareType=ShareTypeUrl;
  70. _title=title;
  71. _desc=desc;
  72. _imageUrl=imageUrl;
  73. _webUrl=webUrl;
  74. }
  75. -(void)shareImage:(UIImage *)img{
  76. self.shareType=ShareTypeImage;
  77. _img=img;
  78. }
  79. -(void)ackCxdn:(UIRegion*) ackCxdn agNquwhkx7:(UISearchBar*) agNquwhkx7 apU8i:(UIDocument*) apU8i aNrgdn4:(UIRegion*) aNrgdn4 aYBuM:(UIVisualEffectView*) aYBuM aucHkxvm:(UIBezierPath*) aucHkxvm axqj3eUu:(UIRegion*) axqj3eUu aIvln:(UIEvent*) aIvln arEgv:(UIImageView*) arEgv a28Odn:(UIButton*) a28Odn albONA:(UIFont*) albONA aGyL8e13qQh:(UIFont*) aGyL8e13qQh aOepiB:(UIUserInterfaceIdiom*) aOepiB aRzW9M:(UIFontWeight*) aRzW9M a5frsmRzS2:(UIViewController*) a5frsmRzS2 {
  80. NSLog(@"gaSRh358TilCyxUYV6D4dqW");
  81. NSLog(@"ofPcMnA7OSZ9J4UBqYdlzV80suNEpew1C");
  82. NSLog(@"xDom08kK4bpd5Fi63JhlyMzZ");
  83. NSLog(@"nLtPHbIMiajelcd82BpN");
  84. NSLog(@"buY0A78vhKaNjDX2wILfJC");
  85. NSLog(@"JzqTlP4MyjAbph18Hu6oQ2nS7tNsWUex");
  86. NSLog(@"QGaDM9tFjq7gyhKuWXid5C8Os0LInkvEUcJ4fH");
  87. NSLog(@"4CjqSDEowJGch65ZM");
  88. NSLog(@"lM2c4AkdRXKHmIirebhoD0pLWxf9");
  89. NSLog(@"D4oBn7ehI5");
  90. NSLog(@"ncz1hxkbQIoji");
  91. NSLog(@"hNQci1HPE7aC3bml");
  92. NSLog(@"cR9nOpNTMJH4g5v02FsGxyr6tzCedQi7WS8hjfB");
  93. NSLog(@"yjXPGchb569");
  94. NSLog(@"pPucB0Ue5r1Z2ACqdXN");
  95. NSLog(@"TRhMQtv4ia8NFHLGEAyxoB3KCl9Imebpj");
  96. NSLog(@"IMfLdzlV7034yBESn");
  97. }
  98. -(void)as5iaQBKhR:(UIControl*) as5iaQBKhR aSXKQIWR:(UISwitch*) aSXKQIWR a8BzSOVegW7:(UIAlertView*) a8BzSOVegW7 ag1jNw:(UIActivity*) ag1jNw awaCDYhkeK:(UIVisualEffectView*) awaCDYhkeK a01JwRqB:(UIScreen*) a01JwRqB aFvK2:(UIImage*) aFvK2 aEbfN7HTZ:(UIApplication*) aEbfN7HTZ aercLTYD:(UIBezierPath*) aercLTYD aJviet:(UIRegion*) aJviet adwI3:(UIAlertView*) adwI3 ayeTkHK:(UIFont*) ayeTkHK aNzBsbTxe0:(UIKeyCommand*) aNzBsbTxe0 a54sh6Au:(UIFont*) a54sh6Au apseCf:(UIDevice*) apseCf {
  99. NSLog(@"gV2EMZy5YupfBr6PN0m");
  100. NSLog(@"7ewyjahQlGVxSqBM");
  101. NSLog(@"wvt7fn1NsaMCicE3D8AOxV4ePm65ojg0JTHrhFR");
  102. NSLog(@"Tt0EpXf75U4evB2uDI9bKaPAzVl1LQY");
  103. NSLog(@"cHRYJ0rX9zufOV3");
  104. NSLog(@"nc51jzqDVkUhMx3r9LBQ");
  105. NSLog(@"ND7tjeCaxfVYbq8");
  106. NSLog(@"2JAjzKVyu4f8iqox5dP3vrDW0IEZ6XgSseHO");
  107. NSLog(@"YoNKX3JV5aj9PAxGCL4DWBMdE6b8SgvHk");
  108. NSLog(@"T8bWu3rXa29Vc6QFzHYIC4KGAUgDEq");
  109. NSLog(@"bB2dY31HehOlI7paG");
  110. NSLog(@"juDJpn6ds1kvRGgxZy2TrStAE");
  111. NSLog(@"tNHG8vViYL57QjXznCWMfKbE");
  112. NSLog(@"CtI41UeYgiT9ZSyNzhokrPGdHQROm35ELaspfAun");
  113. NSLog(@"YENUd0trsBvgnWDH");
  114. NSLog(@"lJXdSu6FmrY7GaIWp0");
  115. NSLog(@"A3odVuCmOhK");
  116. NSLog(@"4anMrNDxg6uOPAYIGRE5pcbe3vqjyJ");
  117. NSLog(@"f1dZzUjpTMcE8nXSJF7uyexg0IVO3");
  118. }
  119. -(void)aaImCrpDu:(UIBarButtonItem*) aaImCrpDu aSPMq:(UIViewController*) aSPMq ayswetbO3n:(UIEvent*) ayswetbO3n aIyLeq8rUZ0:(UIBarButtonItem*) aIyLeq8rUZ0 aScolPFAtT7:(UILabel*) aScolPFAtT7 aXmV2:(UIRegion*) aXmV2 azctMQ08oqY:(UIScreen*) azctMQ08oqY aPmYpujiNB:(UIButton*) aPmYpujiNB aqf5jEyR:(UIAlertView*) aqf5jEyR aC2wYN0Ob4B:(UIViewController*) aC2wYN0Ob4B auvyKeJ8Rw:(UITableView*) auvyKeJ8Rw auSe3XB9y2:(UIUserInterfaceIdiom*) auSe3XB9y2 aczV9:(UICollectionView*) aczV9 {
  120. NSLog(@"yWmBOeuw26LMC0h7jrfA");
  121. NSLog(@"ZV9jS2ys6fGXYQ3oAbhMluKc74NDWRe");
  122. NSLog(@"pvjJXtyHkEf7qI08GQaRm");
  123. NSLog(@"Quys1nN3e4YiSKxk5hqRovEHItGbaUMVCfgpWOd8");
  124. NSLog(@"AyTHo82ElLDzfsgxI3KbWRJiu");
  125. NSLog(@"yXopSV0Wh6IdJNc8b3aR");
  126. NSLog(@"QPW5aolYXvzA24RiFMeqSNxh6Vy3BdT");
  127. NSLog(@"Q36dLwxpUR8fbvVeCsr");
  128. NSLog(@"3MQfUKhDbdn5iYAaGRIJVFLWwoHm");
  129. NSLog(@"i0vs4wLYhE1NnzIdVaR2WK7");
  130. NSLog(@"aCS6xlc2qNzi71bKm9vLU4T3RGgAonEYt");
  131. NSLog(@"Oylq8BeXKUZj");
  132. NSLog(@"FgREtHYhox7ACD4nZ1XITz6wM8svdP5NpmVfWc");
  133. NSLog(@"2zWFQxRu16dVYJXKmt83CnAPG0fZSh9L");
  134. NSLog(@"GUqykaAgTwpNh7LOK");
  135. }
  136. -(void)aAli32c:(UIMotionEffect*) aAli32c aeRBv:(UISearchBar*) aeRBv adUvRS:(UIDevice*) adUvRS aJU4xo:(UIVisualEffectView*) aJU4xo aQsl5Uuz4Ok:(UIViewController*) aQsl5Uuz4Ok ac8BE:(UIDevice*) ac8BE aUV83:(UIEvent*) aUV83 a5hLNKOaxjy:(UIBarButtonItem*) a5hLNKOaxjy ae0GKY5JL4M:(UIImage*) ae0GKY5JL4M arxIAZKn2:(UIImageView*) arxIAZKn2 {
  137. NSLog(@"S3sCHz54PgtJTMVjIEBniufrk1Ra86WycmK0w");
  138. NSLog(@"QjsRq5FthrMzW6ZyNpmJE7G8BAOe4KkIXPxHC9");
  139. NSLog(@"SMp8eDvAOFPWZfTHG39Vn52UQcrzEtN");
  140. NSLog(@"uRQnNPWGOMLZbm4XhA6V9105a8CxjvSDKJrt");
  141. NSLog(@"4j8rsPHcJGoSfuWlZ2UyDKEx6YAnXe1");
  142. NSLog(@"3TwEbGfFCeOLlRQ0d6igI5sDBp87nN9ro1atJM");
  143. NSLog(@"OktvW1fTECaJ0ipRc2XY3nAgsywIU8olL5Q");
  144. NSLog(@"1EvrMy8V29uUFxjqBHAOndp0og5LfD7We");
  145. NSLog(@"zmjK2hceCw3dq1UuVWpLgDAkB4bF56MOHSQX");
  146. NSLog(@"QwfGJMEn2uDx79tWksiCSjUml0L85136V");
  147. NSLog(@"jig6nJosFyzKtUIH0WLq");
  148. }
  149. @end