Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何在iOS应用程序中在Google Plus上发布图像_Iphone_Ios_Ios5_Google Plus - Fatal编程技术网

Iphone 如何在iOS应用程序中在Google Plus上发布图像

Iphone 如何在iOS应用程序中在Google Plus上发布图像,iphone,ios,ios5,google-plus,Iphone,Ios,Ios5,Google Plus,我在iphone上使用Google Plus API成功发布了内容和链接。 使用以下代码: googleShare =[[[GooglePlusShare alloc] initWithClientID:@"my key"] autorelease]; [googleShare setDelegate:self]; appDelegate.shareGOOGLe =googleShare; NSString *inputURL = @""; NSURL

我在iphone上使用Google Plus API成功发布了内容和链接。 使用以下代码:

googleShare =[[[GooglePlusShare alloc] initWithClientID:@"my key"] autorelease];


    [googleShare setDelegate:self];
     appDelegate.shareGOOGLe =googleShare;


    NSString *inputURL = @"";
    NSURL *urlToShare = [inputURL length] ? [NSURL URLWithString:inputURL] : nil;

    NSLog(@"%@",urlToShare);
    NSString *inputText = @"TEst Sharing testing from iOS 5.0";
    NSString *text = [inputText length] ? inputText : nil;
      NSLog(@"%@",text);

    [[[[googleShare shareDialog]
       setURLToShare:urlToShare]
      setPrefillText:shareMessge] open];
但我想把图片上传到谷歌+

有人能帮我吗


提前感谢。

目前无法通过Google+iOS SDK在Google+上共享图像。

目前无法通过Google+iOS SDK在Google+上共享图像。

@Chirag。。。您应该看到适用于iPhone/iPad的Flipboard应用程序。它在Google+帐户上共享链接、评论和图像。请看一看,如果我在任何时候都错了,请告诉我。

@Chirag。。。您应该看到适用于iPhone/iPad的Flipboard应用程序。它在Google+帐户上共享链接、评论和图像。请看一看,如果我在任何时候都错了,请告诉我。

这可以与google plus共享图像

- (IBAction) didTapShare: (id)sender {
    id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
    [shareBuilder attachImage:[UIImage imageNamed:@"yourImagename.png"]];
    [shareBuilder open];
}

引用自

这可以与google plus共享图像

- (IBAction) didTapShare: (id)sender {
    id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
    [shareBuilder attachImage:[UIImage imageNamed:@"yourImagename.png"]];
    [shareBuilder open];
}

这些链接将有助于:

链接显示了如何和可以共享的内容

在链接1的底部,它提到将媒体连接到共享帖子。您可以将图片和电影附加到帖子中,供用户共享到他们的流中

链接2显示共享媒体的代码段;图像和视频

下面是在google上共享图像的代码片段+

- (IBAction) didTapShare: (id)sender {
 id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];

 // Set any prefilled text that you might want to suggest
 [shareBuilder setPrefillText:@"Achievement unlocked! I just scored 99 points. Can you beat me?"]

 NSString *fileName = @"samplemedia1";
 [shareBuilder attachImage:[UIImage imageNamed:fileName];

 [shareBuilder open];
}

这些链接将有助于:

链接显示了如何和可以共享的内容

在链接1的底部,它提到将媒体连接到共享帖子。您可以将图片和电影附加到帖子中,供用户共享到他们的流中

链接2显示共享媒体的代码段;图像和视频

下面是在google上共享图像的代码片段+

- (IBAction) didTapShare: (id)sender {
 id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];

 // Set any prefilled text that you might want to suggest
 [shareBuilder setPrefillText:@"Achievement unlocked! I just scored 99 points. Can you beat me?"]

 NSString *fileName = @"samplemedia1";
 [shareBuilder attachImage:[UIImage imageNamed:fileName];

 [shareBuilder open];
}

你试过什么?为什么要贬低这个问题?你能具体说明你真正想做什么吗?我想你还没有在谷歌上冲浪。人们白天有很多事情要做,他们会想明智地把业余时间花在正确的问题上。如果你想在Google Plus上发布图片,请在Google上查找指针。如果你找不到任何东西或者只找到了部分答案,那么就要求对StackOverflow进行澄清。GiveMeTheCodez没有打开。@Prypiat如果有人在谷歌上找不到任何东西并发布问题怎么办?我认为上面的问题很有道理。他需要一些指导,而不是代码。顺便说一句,希拉格·沙阿回答了一个对我和其他人都有帮助的问题。你试过什么?为什么要贬低这个问题?你能具体说明你到底想做什么吗?我想你还没有在谷歌上冲浪。人们白天有很多事情要做,他们会想明智地把业余时间花在正确的问题上。如果你想在Google Plus上发布图片,请在Google上查找指针。如果你找不到任何东西或者只找到了部分答案,那么就要求对StackOverflow进行澄清。GiveMeTheCodez没有打开。@Prypiat如果有人在谷歌上找不到任何东西并发布问题怎么办?我认为上面的问题很有道理。他需要一些指导,而不是代码。顺便说一句,希拉格·沙阿回答了这个对我和其他人都有帮助的问题。请看他发布答案的日期。差不多一年前。看看他公布答案的日期。差不多一年前。你能建议我如何使用此方法在google+上共享图像吗?你能建议我如何使用此方法在google+上共享图像吗?这是不推荐的。不要使用。这是不推荐使用的。不要使用。