我想在Google Plus上分享图片:
我已经用过google + api
AppDelegate.m
[GPPSignIn sharedInstance].clientID = @"MyClientID";
[GPPDeepLink setDelegate:self];
[GPPDeepLink readDeepLinkAfterInstall];
然后按一下按钮
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];
但单击它会崩溃并显示错误消息:
-[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x1e887ea0'
它在[shareBuilder打开]时崩溃
最佳答案
这是因为您尚未设置其他链接程序标志,
转到构 build 置,然后
其他链接器标志:-ObjC
关于iphone - 在iOS中使用Google Plus进行图像共享,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17857588/