ios - Share Pin using Pinterest SDK -
i'm trying post pin app pinterest.
i followed there documentation : ios pin sdk.
it's simple, each time try pin image app raise exception, or pinterest app opened when pin image got error:

it seems there problem in right client id.
i searched problem , found result: message sent deallocated instance using pinterest sdk , didn't work me!
my code:
var pin = pinterest(clientid: "1446186", urlschemesuffix: "prod") var urll = nsurl(string: "http://placekitten.com.s3.amazonaws.com/homepage- samples/200/287.jpg")! var sourceurl = nsurl(string: "http://placekitten.com")! pin.createpinwithimageurl(urll, sourceurl: sourceurl, description: "pinning pin demo")
try following code....its using in project...
_pinterest = [[pinterest alloc] initwithclientid:@"xxxxx" ]; nsstring *imagekey =[nsstring stringwithformat:@"%@",url]; nsstring *captionkey = tempcaption; nslog(@"pinterest :%@ -- %@",imagekey,captionkey); nsurl *imageurl = [nsurl urlwithstring:[nsstring stringwithformat:@"%@",imagekey]]; nsurl *sourceurl = [nsurl urlwithstring:kservicestorelink]; nsstring *descrstr = [nsstring stringwithformat:@"%@",captionkey]; [_pinterest createpinwithimageurl:imageurl sourceurl:sourceurl description:descrstr];
Comments
Post a Comment