在按照pinterest教程(https://developers.pinterest.com/docs/sdks/ios/)的建议设置了我的应用程序后,我尝试固定一个简单的图像,但失败了。它返回以下错误:
NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'即使我使用pinterest SDK示例代码。
[PDKPin pinWithImageURL:[NSURL URLWithString:@"https://about.pinterest.com/sites/about/files/logo.jpg"]
link:[NSURL URLWithString:@"https://www.pinterest.com"]
suggestedBoardName:@"Tooty McFruity"
note:@"The Pinterest Logo" withSuccess: ^{
NSLog(@"successfully pinned pin");
}
andFailure: ^(NSError *error) {
NSLog(@"pin it failed");
}];我做错了什么?或者这是一个SDK Bug?
发布于 2015-12-06 07:12:49
我自己想出来的。我的plist文件缺少BundleDisplayName。为了解决这个问题,你只需要把它添加到plist文件中。
https://stackoverflow.com/questions/34099806
复制相似问题