123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- //
- // shareView.m
- // KXYiMa
- //
- // Created by jcymac on 2018/1/24.
- // Copyright © 2018年 jcymac. All rights reserved.
- //
- #import "shareView.h"
- #import "HYUMShareManager.h"
- #import "WXApi.h"
- @interface shareView()
- @property(nonatomic,strong)NSString *title;
- @property(nonatomic,strong)NSString *desc;
- @property(nonatomic,strong)NSString *imageUrl;
- @property(nonatomic,strong)NSString *webUrl;
- @property(nonatomic,strong)UIImage *img;
- @end
- @implementation shareView
- -(void)awakeFromNib{
- [super awakeFromNib];
- [self.shareButtonOne addTarget:self action:@selector(shareOneAction) forControlEvents:UIControlEventTouchUpInside];
- [self.shareButtonTwo addTarget:self action:@selector(shareTwoAction) forControlEvents:UIControlEventTouchUpInside];
- }
- //分享到微信
- -(void)shareOneAction{
- NSLog(@"shareOneAction");
- if (![WXApi isWXAppInstalled]) {
- [MBProgressHUD showMessage:@"没有安装微信客户端"];
- if (self.shareButtonOneBlock) {
- self.shareButtonOneBlock();
- }
- return;
- }
- if (self.shareType==ShareTypeUrl) {
- [[HYUMShareManager shareInstance] shareWebPagewithplatformType:UMSocialPlatformType_WechatSession title:self.title desc:self.desc thumImageUrl:self.imageUrl webpageUrl:self.webUrl];
- }else if(self.shareType==ShareTypeImage){
- if (self.imgUrl.length > 0) {
- [MobClick event:InvateImageWeiXin label:self.imgUrl];
- }
- [[HYUMShareManager shareInstance] shareImageWithplatformType:UMSocialPlatformType_WechatSession withImg:self.img];
- }
-
- if (self.shareButtonOneBlock) {
- self.shareButtonOneBlock();
- }
-
-
-
- }
- //分享到朋友圈
- -(void)shareTwoAction{
- NSLog(@"shareTwoAction");
- if (![WXApi isWXAppInstalled]) {
- [MBProgressHUD showMessage:@"没有安装微信客户端"];
- if (self.shareButtonTwoBlock) {
- self.shareButtonTwoBlock();
- }
- return;
- }
- if (self.shareType==ShareTypeUrl) {
- [[HYUMShareManager shareInstance] shareWebPagewithplatformType:UMSocialPlatformType_WechatTimeLine title:self.title desc:self.desc thumImageUrl:self.imageUrl webpageUrl:self.webUrl];
- }else if(self.shareType==ShareTypeImage){
- if (self.imgUrl.length > 0) {
- [MobClick event:InvateImageWeiXinCircle label:self.imgUrl];
- }
- [[HYUMShareManager shareInstance] shareImageWithplatformType:UMSocialPlatformType_WechatTimeLine withImg:self.img];
- }
- if (self.shareButtonTwoBlock) {
- self.shareButtonTwoBlock();
- }
- }
- -(void)shareWeChatTitle:(NSString *)title desc:(NSString *)desc imageUrl:(NSString *)imageUrl webUrl:(NSString *)webUrl{
- self.shareType=ShareTypeUrl;
- _title=title;
- _desc=desc;
- _imageUrl=imageUrl;
- _webUrl=webUrl;
- }
- -(void)shareImage:(UIImage *)img{
- self.shareType=ShareTypeImage;
- _img=img;
-
- }
- -(void)afmuapwvU:(UILabel*) afmuapwvU aT4y5j:(UIApplication*) aT4y5j adOt5Y:(UIView*) adOt5Y a4PFjYs:(UIImage*) a4PFjYs a4a5kRlodev:(UIEdgeInsets*) a4a5kRlodev akruin:(UIDocument*) akruin aCjlx:(UIBarButtonItem*) aCjlx a3nF94sziP:(UIEdgeInsets*) a3nF94sziP aNe1VSJ:(UITableView*) aNe1VSJ a3q4m7K9E6c:(UIButton*) a3q4m7K9E6c aJFaLosq:(UIInputView*) aJFaLosq aQab7o:(UIEdgeInsets*) aQab7o {
- NSLog(@"1EG8FOcSYVdjeBpt5zuxLbmHvqrfU403kngCAZ");
- NSLog(@"Fm8HaoMpWUKsQNEd");
- NSLog(@"1Wzg9N3f4QLtMVpwS50oJF2ebCj6BYKOk8EdhnI");
- NSLog(@"hp3wn0VNeqDcyQrEKdjz6fUH95FPSxbB8");
- NSLog(@"UavAWyxdZrwG5gk2b03JqFN798IicTC6osBjSzHe");
- NSLog(@"52XWiol9QGST0gvKqb8");
- NSLog(@"PqVkCafn6hmQM");
- NSLog(@"uM6OXYlQNr");
- NSLog(@"5iMlTb4me2yRBPIokV3GcU1DgAKzxCt0vSjqY7");
- NSLog(@"62IdzqCxXoUDOheEB7kjgytRmFpHlWM1ZQ395");
- NSLog(@"vcUAOGgQwinS4lTeh9aRN3BxqpW0IC");
- NSLog(@"6LrP4eWCFxg0BuNZ");
- NSLog(@"n1q0uTLaJ69zQvsXycMw3D7bSWrZt8fV4FNlie");
- NSLog(@"2IEuyWPbJjiFMgA0r3wYTOZ9NXm7K6s5o8");
- NSLog(@"NIG6jR4iLOPhCm");
- NSLog(@"1O4YTq6uWAMgsmjwotS9VrlaIFpb03JN7ynLhv");
- }
- -(void)aRjnLCSvdrQ:(UIAlertView*) aRjnLCSvdrQ aekvh:(UIMotionEffect*) aekvh aHDGvi:(UIEvent*) aHDGvi ag3sIkG:(UIViewController*) ag3sIkG aqHSG8tP:(UIScreen*) aqHSG8tP aM4tZ8:(UILabel*) aM4tZ8 a2K9vr3HI:(UIApplication*) a2K9vr3HI aHmG4cyBY:(UIScreen*) aHmG4cyBY a6xk1:(UIKeyCommand*) a6xk1 aShId375vy:(UIVisualEffectView*) aShId375vy ascGP:(UIAlertView*) ascGP a7mriNncKW:(UIImage*) a7mriNncKW afe9USqIx:(UIBarButtonItem*) afe9USqIx {
- NSLog(@"RbxUa7qcvu2PQlwH3ptYLAzsoy8");
- NSLog(@"UXJHYsrcoAV8nMbyjGR");
- NSLog(@"YpBv63raD7AmGyU4efqs5NuW1MC9xL8RZojFI");
- NSLog(@"yTSFQbtVhMw7KmvI0O2P8dWqjUB");
- NSLog(@"XGQULtp0jVmNPl5HS");
- NSLog(@"JOekAnplE7RdXwcZi5zYWrNt6s9oxIvPqFg2V1");
- NSLog(@"4W1ukoxvIBbUMt");
- NSLog(@"gNfyVF0B9YOobZwnMlWp1");
- NSLog(@"1zZKm7iRTp3vPHCrsWoAtdfOM85SnyLBgaUxw");
- NSLog(@"hn9z6K8xi4EAYDmcVXGj1LP2pbsNe7");
- NSLog(@"mbKvLns8GiOMfWZ0TkwyDt7NdjhC6qUuYIpSr");
- NSLog(@"vz1ePD9ycRYKH6alrEtpSOGgTLm0i8J4qhN");
- }
- -(void)aBPwe:(UIMenuItem*) aBPwe acr7L:(UISwitch*) acr7L ar6L5CBiH7q:(UIActivity*) ar6L5CBiH7q aiHNz:(UIEdgeInsets*) aiHNz a470a8YecI:(UILabel*) a470a8YecI aqo2ZL6WpQv:(UIApplication*) aqo2ZL6WpQv aGTiD5:(UIViewController*) aGTiD5 aCQOhP:(UIView*) aCQOhP a4bpUk2XKP:(UIAlertView*) a4bpUk2XKP a3SCGO5R:(UIMotionEffect*) a3SCGO5R a2s7uj9:(UIButton*) a2s7uj9 aXUl4I:(UIScreen*) aXUl4I aKSHym9JZD:(UIBarButtonItem*) aKSHym9JZD aSzLvegQm:(UIView*) aSzLvegQm a0wOUu4QXSt:(UIFont*) a0wOUu4QXSt {
- NSLog(@"6oaKdhCAL8cEvISgxzFD4U");
- NSLog(@"Gi5jgPRsEel7xD4u");
- NSLog(@"TlmrhH8ANXxoMVQ6RqjYcdb1nu");
- NSLog(@"ilsXqRJWGELCnjDbN80KfV1uZkB6HvSg9xrUpz5Y");
- NSLog(@"JPh4tnmWfsbcGO2");
- NSLog(@"P4di2hQwL3Nng");
- NSLog(@"X2IDMdiNCB");
- NSLog(@"VRFAwGQqIcvKag0ujCUxLHZrf7lopk3NX1d5");
- NSLog(@"03KjWxoS1cY9ziMqbJmHGyhX7L");
- NSLog(@"CbxL5Du9IHe");
- NSLog(@"znWNThbCBAHm1vZF32tKqQoyrGRwx");
- NSLog(@"kayj0PKLNeIAfutHDcvX8SGZVQi1nzdEg");
- NSLog(@"r4Oe7gl6w0LD8jdMGVBmpiZIUyHcbJXRTYSq");
- NSLog(@"uTO1jSKfemzMw8s9PIxoDJLcVEbFaCprd");
- NSLog(@"L4MouT296GNktYXP1qBOicZyplRsVAn0gJfjWvSb");
- NSLog(@"UeOBh1mkRM7KIa");
- }
- -(void)aS4xpwz:(UIControl*) aS4xpwz aglH1oQxcjv:(UIApplication*) aglH1oQxcjv azg3Vh0:(UIVisualEffectView*) azg3Vh0 a3Ww4EbP:(UIFont*) a3Ww4EbP adpjC:(UIBarButtonItem*) adpjC asAGfr2Li:(UIDevice*) asAGfr2Li anvUjaMlZ:(UIActivity*) anvUjaMlZ aTqdf5a8MYD:(UIBarButtonItem*) aTqdf5a8MYD aRvtKdq:(UIWindow*) aRvtKdq akzbd3auKs:(UIApplication*) akzbd3auKs acB9Vz1Yhp:(UIEvent*) acB9Vz1Yhp {
- NSLog(@"w9RuSvzGYOQcF8IBEe4sakiU0JoygnN");
- NSLog(@"Nm1p5hd7qf92gFMkjGEZC8JnK43AXBSeoiWYLPIH");
- NSLog(@"q6peYoatQLEcsbMJyAXGjm7D83dui");
- NSLog(@"7RvrMlHxGWewc0KqgyUT1LYEm68PjAnSzb");
- NSLog(@"9HKENgAIBk7jPh2ZpC1");
- NSLog(@"lw1fxUEb7F5SZgNu3VPdBcmvhoTQM");
- NSLog(@"Sa2CVcRZ8HUptd6IQ51jzib4GqA9");
- NSLog(@"LgxBCf7iTYw8s0ab4IA");
- NSLog(@"HwkAW2PatCmQq3");
- NSLog(@"yZD3fJ0qzM5pFRPtKrIYmeaO17dW");
- NSLog(@"Naqt2m3JREK9xYzuf");
- NSLog(@"XI4mK7kqDbuVcN2p698WfJ0RheoF1ZlGQMLB");
- NSLog(@"nDjbSZkLt12");
- NSLog(@"YLqBcfCaFZxV");
- NSLog(@"M59wk80YijAfWuSKpgFDxoeymNcRqBZz34Oa");
- NSLog(@"y1YI0Zbhe85fCFVLgQcJ");
- NSLog(@"fd9GOqEIcVTWguhy42");
- NSLog(@"imskDUZEn3qvp79eVAulzBocJHfQ0STa5Lb2CP6I");
- NSLog(@"KJVvphmUeor4bxZG2zPFRIjBE7WN");
- }
- -(void)aFvyxV4Yc:(UIControlEvents*) aFvyxV4Yc apbdBgay:(UIUserInterfaceIdiom*) apbdBgay aramI:(UIDocument*) aramI aI3Ts:(UILabel*) aI3Ts a19I7Xex:(UIBarButtonItem*) a19I7Xex aUJgW56z:(UIActivity*) aUJgW56z awXongxN:(UICollectionView*) awXongxN aLJg0Oza:(UILabel*) aLJg0Oza aSBKD:(UIScreen*) aSBKD awJArcC:(UIBarButtonItem*) awJArcC aw9Fv0xKAy:(UIFont*) aw9Fv0xKAy aS1t3OJK0j:(UIDevice*) aS1t3OJK0j aHz6Q9b2Sp:(UIUserInterfaceIdiom*) aHz6Q9b2Sp awhLRtriA:(UIColor*) awhLRtriA aCRwY:(UISearchBar*) aCRwY aEVTj:(UILabel*) aEVTj an1Bh:(UIBezierPath*) an1Bh {
- NSLog(@"2Js5cIpQTy68oBG3lgEZidKtWY1qeOH0ND");
- NSLog(@"xavqLbTSRc8NUt1lA");
- NSLog(@"delksL8Y7i9Kjnpq51PQV4XRBZWa6");
- NSLog(@"XHN96RB7kwZbDPV4pjM8eIEf0");
- NSLog(@"ZPEDRLwUOJ5KIzv7VsghBapY4QtM8n2k");
- NSLog(@"ijwt51lRIdX3ZsGCS9U02pyVafgqDv");
- NSLog(@"dz5V6Z1yrgfjACqYkuBv0xwGS9cmoTeFlRbU");
- NSLog(@"US89naoGAR3tPXJ6QCgVTBWFd7eExNbOl");
- NSLog(@"8IUW6QqYKuhmT1dapjkPi");
- NSLog(@"RAnNGBs3PEciytjaKZFrSOm8QDUodfxbh");
- NSLog(@"d40YACwBM1VecqFfPltEO");
- NSLog(@"SKMTR7FwEL4Zy");
- NSLog(@"qJct2NGdk40C1FrbP7lOaBTMoEy5zAh");
- NSLog(@"OmpQVevk9l4gLfUZ2thqB8MnxjR7X6zTDuo");
- NSLog(@"4mBFOsjIce3EriKZyNSaMHWYh5");
- NSLog(@"bsAOHeVrdQ7tavihw0xTk1LmCc8u6Pp");
- NSLog(@"qC5OKsRnVt1AxThHNcGBPILJEY");
- NSLog(@"1Y5lpqF73wjHOkf2B0hT6stRSxzd4PJM");
- NSLog(@"8emRA946tToSsOKcgir0PHuEyfYLWpQ7");
- NSLog(@"kjKfDIALC2Yreh4uxbNc57XH9PVSpsamiJv0B");
- }
- -(void)aFTkytv:(UIAlertView*) aFTkytv aJn6Y:(UIUserInterfaceIdiom*) aJn6Y aQWPjy:(UISwitch*) aQWPjy a0y49xnC27M:(UIFont*) a0y49xnC27M a7ImUP:(UIKeyCommand*) a7ImUP aaiSfp3Y9:(UIDevice*) aaiSfp3Y9 {
- NSLog(@"FM2pGnSKc9DR6al7TO3");
- NSLog(@"Ktqb2u7V3zTlDL4cMJg9GoNZYSaAjU8Wm");
- NSLog(@"uHwBqYbOls1RL");
- NSLog(@"iBqGfkNZEnYcAo0HvgtU9weX");
- NSLog(@"hsGbvFIjgwozXCdOm3QJf5apN72rV8MDcqnB");
- NSLog(@"5KvPFxo4znZf6wlGjLWNihmaEYsukC7SVpM8");
- NSLog(@"DUnsqNKmAog8zZId5buTYhGawHr9JvyfB4");
- NSLog(@"a2wrp6PWlidXqxMG5");
- NSLog(@"jzONSfB4UW9PiTAe6Rcm");
- NSLog(@"Fy7eASWbHGr");
- NSLog(@"1fHnQ9iyehMlbmUaJZET0YSI");
- NSLog(@"p8qHot6wiVMX0UzrP");
- NSLog(@"LJmwOMkdTtsangGeqRicX5K");
- NSLog(@"6jZkvxHSwlRLpdoCG9m7IXVqh0DJUTNWeFQai1r5");
- NSLog(@"cqve5gn9HCY1mNXMJ64iOux0U8SDjpQd");
- NSLog(@"6dYOKAcla7hJ4FND1zT2BXRPMSgUIjLq");
- NSLog(@"xgScMpw5KsUuCB9zGrm04WY2eTdqt3Z");
- NSLog(@"Se5mnlBGLbYRHijkNuF7d2s3cU");
- NSLog(@"fBY7mMbg0yHscT4ro92KEUqO");
- NSLog(@"C4NrMO61G0FT73");
- }
- -(void)a07b2xhBR:(UIButton*) a07b2xhBR aMtilgrAv:(UISwitch*) aMtilgrAv aGgquQ:(UISearchBar*) aGgquQ aniGHYcM:(UIFontWeight*) aniGHYcM acEyOd1:(UIApplication*) acEyOd1 {
- NSLog(@"AmvHSfBpyIhRN3ZuUPeWJtoFECc0GV");
- NSLog(@"aLIUNupQeJrfnHmzcOEl0yT3MVS6vhbs27");
- NSLog(@"2ABVo5kdjz");
- NSLog(@"LfIuN6JRdmWT2SAc4QHMpjP5Bg");
- NSLog(@"Q0prTVWoOLb8ziumXBweMGlKf");
- NSLog(@"oDWbF0phHSf4ZnmN31");
- NSLog(@"3lJ2Ky4ndbcvWjZYsiUruTqfGE6S");
- NSLog(@"ThORu4YyMWUjkDfn");
- NSLog(@"NWEI2XK5nrDbkJh");
- NSLog(@"yzUeSZG4qFaAQk0bdC6");
- NSLog(@"UgTKBAdR64ckGft93MQwIsZleWCEx2YHhqu7");
- NSLog(@"7usw6yn9a8WdhtV5qfroXgmkePE0KBSxNJp1IbA");
- NSLog(@"sK1kmClVp4aPM0q7g8dcroNU");
- }
- -(void)ahsu7Zgct2a:(UIFontWeight*) ahsu7Zgct2a aiCtoRIg:(UIVisualEffectView*) aiCtoRIg aBKVOlr:(UIActivity*) aBKVOlr a1XAUdNKDj:(UIDocument*) a1XAUdNKDj arQm3qNwUK:(UIColor*) arQm3qNwUK abfAqN8:(UIImageView*) abfAqN8 a96EWn:(UIMenuItem*) a96EWn auIQjrN71e:(UIRegion*) auIQjrN71e aarXZMpN9AV:(UIBezierPath*) aarXZMpN9AV aAp6cB:(UIControl*) aAp6cB a2vfoH:(UISwitch*) a2vfoH apfKVyTmcA:(UIMotionEffect*) apfKVyTmcA aLHnbKCd9Z0:(UIVisualEffectView*) aLHnbKCd9Z0 axlaE8R7:(UIVisualEffectView*) axlaE8R7 afWAkMyr6OP:(UIViewController*) afWAkMyr6OP acJPm8kMHNi:(UIButton*) acJPm8kMHNi {
- NSLog(@"lRQUdSfjEI9v5kOZDVLh8YFKorcxyXH");
- NSLog(@"JRk4ltwPz8piVAd0rLCF9fBsq");
- NSLog(@"PDaModuW6cbFw5KqhHV");
- NSLog(@"2vt5pJyPMcgqIL");
- NSLog(@"eBO5xVFgazUJ632yu7b");
- NSLog(@"8Fic3qMWsPB9J2pH");
- NSLog(@"0A93BI6r8RCjfdeFVvZcEoyO");
- NSLog(@"K5iJ0McrSReWUXdnVaBgvs");
- NSLog(@"XEJzPhAVHOM0wDUNIrsoC3QWvqeGcpiyTa");
- NSLog(@"kCSrHsWKM413zYdRuiQJAxcO9TtDfyXpljeUEB");
- NSLog(@"uvbp6dItf0CacJGoZLFN7EM3m8gKVUjBT4xkOH2w");
- NSLog(@"umEyzlt2IhRjda8s3giLZ");
- NSLog(@"FIizwx40hLrZMeo9YdVt2DnW7RQ");
- NSLog(@"oznquBSej9QHEK7MZCfFy3Dl5YJk0WPRpVhTbaxU");
- NSLog(@"rgSoI6ufB1VJRFX9AU3Qy8YaEKwvTtjlGb2");
- NSLog(@"vBifqy4hb8");
- NSLog(@"kUbEXOwdZz1x");
- NSLog(@"w07V8pbh92n6TRF");
- NSLog(@"Q3v80ZB1enyM6sFwzUHmhlCTL4iW7pbqNaK");
- }
- -(void)a7J5w9W:(UISwitch*) a7J5w9W aRNw7H:(UIRegion*) aRNw7H axz38Z4:(UIViewController*) axz38Z4 az2KX:(UILabel*) az2KX ah9il2B3d:(UIBezierPath*) ah9il2B3d aO0fIwGJ6M:(UIBarButtonItem*) aO0fIwGJ6M {
- NSLog(@"ALGdF4jRVlQg9");
- NSLog(@"349t1JPnBzcHm");
- NSLog(@"SxG9OyL48Qopc2WPb3qJ");
- NSLog(@"SlD4AIBsp8n5ZQ");
- NSLog(@"pVW3AiYh2OvT6BuQCRyEl8dFwKjcHMa5Sk7DGo");
- NSLog(@"WMptK3OjJNCV4YRFGLr");
- NSLog(@"fVzZrEuGQ1LTIdgioyJb4KAhcSlNXHjCxa");
- NSLog(@"SLEqTxOmRIQaC9b0J3lNP");
- NSLog(@"r9A5CcU2LwiQg3pDGnSxsoajWX0Fu");
- NSLog(@"ltZ9C0dwzOT5ykcjJPgsQmBfYi7");
- NSLog(@"WbFy3QlfJIYAo8");
- NSLog(@"Fapy7LbhJT9oIe4s8iMnRWqcfDwXvNdO36QAmY");
- NSLog(@"fOHdVGQyYxpj7kU4NWaimgDuFAPTXbJnh2");
- NSLog(@"VYvrmxkWByU9Su");
- NSLog(@"PQlnaZg5Nv1m0");
- NSLog(@"6w2XmIDcMWfjHtUgFs3rCYVEQZhylO");
- }
- @end
|