【发布时间】:2013-06-09 16:08:07
【问题描述】:
我想在我的应用程序中集成 pinterest。我想在我的应用程序中添加 pinterest 按钮,通过它我可以在 pinterest 上上传图片我推荐 their Developers site 但它对我没有帮助。
我包含 SDK 并尝试了他们的代码,但它对我不起作用。
#import <Pinterest/Pinterest.h>
UIButton* pinItButton = [Pinterest pinItButton];
[pinItButton addTarget:self
action:@selector(pinIt:)
forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:pinItButton];
- (void)pinIt:(id)sender
{
[_pinterest createPinWithImageURL:@"http://placekitten.com/500/400"
sourceURL:@"http://placekitten.com"
description:@"Pinning from Pin It Demo"];
}
如有任何帮助,我们将不胜感激。
提前致谢。
【问题讨论】:
标签: iphone ios objective-c ipad pinterest