在ios中使用Google Plus进行图像共享 [英] Image Sharing Using Google Plus in ios
本文介绍了在ios中使用Google Plus进行图像共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在google plus上分享图片:
I want to share image on google plus:
我用过google + api
I have used google+ api
AppDelegate.m
AppDelegate.m
[GPPSignIn sharedInstance].clientID = @"MyClientID";
[GPPDeepLink setDelegate:self];
[GPPDeepLink readDeepLinkAfterInstall];
和按钮操作
ViewController。 m
ViewController.m
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];
[shareBuilder setURLToShare:[NSURL URLWithString:@"http://dummy.com"]];
[shareBuilder setTitle:@"Some title" description:@"Some description" thumbnailURL:[NSURL URLWithString:@"http://dummy.com/image"]];
[shareBuilder setContentDeepLinkID:@"MyclientID"];
[shareBuilder open];
但点击它会崩溃和错误显示:
but on click it crashes ans error shows:
-[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x1e887ea0'
它崩溃[shareBuilder open]
it crashes on [shareBuilder open]
推荐答案
这是因为你没有设置其他链接器标志,
转到构建设置然后
其他链接标记:-ObjC
It is because you dont have set the other linker Flag, Go to Build Setting and then Other Linker Flags: -ObjC
这篇关于在ios中使用Google Plus进行图像共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文