我正在使用UIDocumentInteractionController在另一個應用程序DropBox中打開文件。UIDocumentInteractionController在沒有選項的特定應用程序中打開文件
我想要做的是在另一個特定的應用程序中打開文件,但我只管理到目前爲止顯示支持的應用程序,並允許用戶選擇。
UIDocumentInteractionController *udi = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath: jpgPath]];
[udi retain];
CGRect r = CGRectMake(0, 0, 300, 300);
[udi presentOpenInMenuFromRect:r inView:self.view animated:YES];
這提供了一個支持的應用程序列表,但我想直接用Dropbox打開文件,沒有選項框。有任何想法嗎?
如果我們談論的Instagram?它有instagram://方案,但我不知道任何正常的方式來傳遞圖像。 –
有iOS 5可能爲我們添加了什麼?我找不到任何東西,但認爲我會問,如果有人有! – strawtarget