에 이미지 업로드 I는 다음과 인스 타 그램에 이미지를 업로드 할 수있는 코드를 작성했습니다 :아이폰 : 인스 타 그램
CGRect rect = CGRectMake(20 ,20 , 200, 200);
UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, self.view.opaque, 0.0);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIGraphicsEndImageContext();
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *jpgPath = [documentsDirectory stringByAppendingPathComponent:@"after2sm.ig"];
NSString *fileURL = [NSString stringWithFormat:@"file://%@",jpgPath];
NSURL *igImageHookFile = [NSURL fileURLWithPath:fileURL];
self.dic.UTI = @"com.instagram.photo";
self.dic = [self setupControllerWithURL:igImageHookFile usingDelegate:self];
self.dic=[UIDocumentInteractionController interactionControllerWithURL:igImageHookFile];
[NSDictionary dictionaryWithObject:@"My Caption" forKey:@"InstagramCaption"];
[self.dic presentOpenInMenuFromRect:rect inView:self.view animated:YES];
을 그러나 "인스 타 그램"옵션으로 actionsheet를 엽니 다하지만 난 그 아무것도 클릭 할 때 발생합니다. 당신이 날
답장을 보내 주셔서 감사합니다. – user1954352