Вопрос

I am needing some help. I'm using the Pinterest API to add a new pin, from an iOS app. My code is the following:

 NSURL *imageURL = [NSURL URLWithString:self.myUrl];
 NSURL *sourceURL = [NSURL URLWithString:self.myUrl];
 [self.pinterest createPinWithImageURL:imageURL sourceURL:sourceURL description:[NSString stringWithFormat:@" Try\n %@",self.comments.text]];

Now I need to detect when (and if) the pin has been created. Is it possible? I was not able to found any informations in the documentation.

Это было полезно?

Решение

No, it's not possible. createPinWithImageURL:sourceURL:description: has no return value and there's no protocol you can implement to receive the identifier of the pin you just created.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top