29,027
社区成员
发帖
与我相关
我的任务
分享
? ?NSURL *imageURL=[NSURL fileURLWithPath:saveImagePath];
self.documentController=[[UIDocumentInteractionController alloc]init];
self.documentController = [UIDocumentInteractionController interactionControllerWithURL:imageURL];
self.documentController.delegate = self;
self.documentController.annotation = [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Testing"], @"InstagramCaption", nil];
self.documentController.UTI = @"com.instagram.exclusivegram";
UIPopoverController *popover=[[UIPopoverController alloc]initWithContentViewController:_documentController];
? ? [popover presentPopoverFromRect:CGRectMake(SCREEN_WIDTH * 0.6, SCREEN_HEIGHT * 0.95, SCREEN_WIDTH / 2,SCREEN_HEIGHT * 3 /2) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
?