|
|
@@ -36,6 +36,9 @@
|
|
|
- (void)shareType:(NSInteger)type withShareUrl:(NSString*)shareUrl withShareTitle:(NSString*)shareTitle withShareContent:(NSString*)shareContent
|
|
|
{
|
|
|
//[[iToast makeText:@"接入云游戏的APP分享请在这里添加代码实现"] show];
|
|
|
+
|
|
|
+ //HLog(@"type:%ld---shareUrl:%@---shareTitle:%@",type,shareUrl,shareTitle)
|
|
|
+
|
|
|
if(type == 3)
|
|
|
{
|
|
|
[self shareQQwithShareUrl:shareUrl withShareTitle:shareTitle withShareContent:shareContent];
|
|
|
@@ -60,9 +63,9 @@
|
|
|
UIImage *shareImage = [UIImage imageNamed:@"AppIcon"];
|
|
|
|
|
|
/*分享文字+连接*/
|
|
|
-
|
|
|
+ NSURL*curUrl = [NSURL URLWithString:shareUrl];
|
|
|
QQApiNewsObject *newsObj = [QQApiNewsObject
|
|
|
- objectWithURL:[NSURL URLWithString:shareUrl]
|
|
|
+ objectWithURL:curUrl
|
|
|
title:shareTitle
|
|
|
description:shareContent
|
|
|
previewImageData:UIImagePNGRepresentation(shareImage)];
|