0
iOS에 Tumblr 앱이있는 Tumblr에 공유 사진이 필요합니다.Tumblr을위한 UIDocumentInteractionController
NSData *imageData = UIImageJPEGRepresentation(self.test.image, 1.0);
NSString *writePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"instagram.igo"];
if (![imageData writeToFile:writePath atomically:YES]) {
NSLog(@"image save failed to path %@", writePath);
return;
}
// send it to instagram.
NSURL *fileURL = [NSURL fileURLWithPath:writePath];
self.documentController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
[self.documentController setUTI:@"com.instagram.exclusivegram"];
[self.documentController setAnnotation:@{@"InstagramCaption" : @"#hey"}];
if (![self.documentController presentOpenInMenuFromRect:self.view.frame inView:self.view animated:YES]) NSLog(@"couldn't present document interaction controller");
그러나 이런 식으로 어떻게 내가 찾을 수는 없지만, 텀블러에 대한 감사