我想在iPad上使用UIDocumentInteractionController,请问怎么使用啊?

shaoniantingyu_hj 2018-04-02 02:58:10
我想在iPad上使用UIDocumentInteractionController,iPhone 上可以直接用,iPad上好像不可以请问怎么使用?
? ?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];
?
...全文
668 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
shaoniantingyu_hj 2018-04-02
  • 打赏
  • 举报
回复
别沉,求大神出来教我一下

29,027

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧