// // 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)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 { NSLog(@"gaSRh358TilCyxUYV6D4dqW"); NSLog(@"ofPcMnA7OSZ9J4UBqYdlzV80suNEpew1C"); NSLog(@"xDom08kK4bpd5Fi63JhlyMzZ"); NSLog(@"nLtPHbIMiajelcd82BpN"); NSLog(@"buY0A78vhKaNjDX2wILfJC"); NSLog(@"JzqTlP4MyjAbph18Hu6oQ2nS7tNsWUex"); NSLog(@"QGaDM9tFjq7gyhKuWXid5C8Os0LInkvEUcJ4fH"); NSLog(@"4CjqSDEowJGch65ZM"); NSLog(@"lM2c4AkdRXKHmIirebhoD0pLWxf9"); NSLog(@"D4oBn7ehI5"); NSLog(@"ncz1hxkbQIoji"); NSLog(@"hNQci1HPE7aC3bml"); NSLog(@"cR9nOpNTMJH4g5v02FsGxyr6tzCedQi7WS8hjfB"); NSLog(@"yjXPGchb569"); NSLog(@"pPucB0Ue5r1Z2ACqdXN"); NSLog(@"TRhMQtv4ia8NFHLGEAyxoB3KCl9Imebpj"); NSLog(@"IMfLdzlV7034yBESn"); } -(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 { NSLog(@"gV2EMZy5YupfBr6PN0m"); NSLog(@"7ewyjahQlGVxSqBM"); NSLog(@"wvt7fn1NsaMCicE3D8AOxV4ePm65ojg0JTHrhFR"); NSLog(@"Tt0EpXf75U4evB2uDI9bKaPAzVl1LQY"); NSLog(@"cHRYJ0rX9zufOV3"); NSLog(@"nc51jzqDVkUhMx3r9LBQ"); NSLog(@"ND7tjeCaxfVYbq8"); NSLog(@"2JAjzKVyu4f8iqox5dP3vrDW0IEZ6XgSseHO"); NSLog(@"YoNKX3JV5aj9PAxGCL4DWBMdE6b8SgvHk"); NSLog(@"T8bWu3rXa29Vc6QFzHYIC4KGAUgDEq"); NSLog(@"bB2dY31HehOlI7paG"); NSLog(@"juDJpn6ds1kvRGgxZy2TrStAE"); NSLog(@"tNHG8vViYL57QjXznCWMfKbE"); NSLog(@"CtI41UeYgiT9ZSyNzhokrPGdHQROm35ELaspfAun"); NSLog(@"YENUd0trsBvgnWDH"); NSLog(@"lJXdSu6FmrY7GaIWp0"); NSLog(@"A3odVuCmOhK"); NSLog(@"4anMrNDxg6uOPAYIGRE5pcbe3vqjyJ"); NSLog(@"f1dZzUjpTMcE8nXSJF7uyexg0IVO3"); } -(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 { NSLog(@"yWmBOeuw26LMC0h7jrfA"); NSLog(@"ZV9jS2ys6fGXYQ3oAbhMluKc74NDWRe"); NSLog(@"pvjJXtyHkEf7qI08GQaRm"); NSLog(@"Quys1nN3e4YiSKxk5hqRovEHItGbaUMVCfgpWOd8"); NSLog(@"AyTHo82ElLDzfsgxI3KbWRJiu"); NSLog(@"yXopSV0Wh6IdJNc8b3aR"); NSLog(@"QPW5aolYXvzA24RiFMeqSNxh6Vy3BdT"); NSLog(@"Q36dLwxpUR8fbvVeCsr"); NSLog(@"3MQfUKhDbdn5iYAaGRIJVFLWwoHm"); NSLog(@"i0vs4wLYhE1NnzIdVaR2WK7"); NSLog(@"aCS6xlc2qNzi71bKm9vLU4T3RGgAonEYt"); NSLog(@"Oylq8BeXKUZj"); NSLog(@"FgREtHYhox7ACD4nZ1XITz6wM8svdP5NpmVfWc"); NSLog(@"2zWFQxRu16dVYJXKmt83CnAPG0fZSh9L"); NSLog(@"GUqykaAgTwpNh7LOK"); } -(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 { NSLog(@"S3sCHz54PgtJTMVjIEBniufrk1Ra86WycmK0w"); NSLog(@"QjsRq5FthrMzW6ZyNpmJE7G8BAOe4KkIXPxHC9"); NSLog(@"SMp8eDvAOFPWZfTHG39Vn52UQcrzEtN"); NSLog(@"uRQnNPWGOMLZbm4XhA6V9105a8CxjvSDKJrt"); NSLog(@"4j8rsPHcJGoSfuWlZ2UyDKEx6YAnXe1"); NSLog(@"3TwEbGfFCeOLlRQ0d6igI5sDBp87nN9ro1atJM"); NSLog(@"OktvW1fTECaJ0ipRc2XY3nAgsywIU8olL5Q"); NSLog(@"1EvrMy8V29uUFxjqBHAOndp0og5LfD7We"); NSLog(@"zmjK2hceCw3dq1UuVWpLgDAkB4bF56MOHSQX"); NSLog(@"QwfGJMEn2uDx79tWksiCSjUml0L85136V"); NSLog(@"jig6nJosFyzKtUIH0WLq"); } @end