首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iOS Pinterest插入空对象

iOS Pinterest插入空对象
EN

Stack Overflow用户
提问于 2015-12-05 08:36:45
回答 1查看 240关注 0票数 0

在按照pinterest教程(https://developers.pinterest.com/docs/sdks/ios/)的建议设置了我的应用程序后,我尝试固定一个简单的图像,但失败了。它返回以下错误:

代码语言:javascript
复制
NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'

即使我使用pinterest SDK示例代码。

代码语言:javascript
复制
[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?

EN

回答 1

Stack Overflow用户

发布于 2015-12-06 07:12:49

我自己想出来的。我的plist文件缺少BundleDisplayName。为了解决这个问题,你只需要把它添加到plist文件中。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34099806

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档