1
我很難解除(編程)我的UIDocumentInteractionController的OpenIn菜單(使用適當的 - dismissMenuWhatever從文檔中的任何方法)。我似乎無法得到它的工作。有人有任何建議嗎?也許我的智力水平不夠?我開始質疑生命的意義。以編程方式關閉UIDocumentInteractionController OpenInMenu?
我很難解除(編程)我的UIDocumentInteractionController的OpenIn菜單(使用適當的 - dismissMenuWhatever從文檔中的任何方法)。我似乎無法得到它的工作。有人有任何建議嗎?也許我的智力水平不夠?我開始質疑生命的意義。以編程方式關閉UIDocumentInteractionController OpenInMenu?
確保您在右側的UIDocumentInteractionController上調用dimissMenuAnimated:
。也許發佈一些代碼,如果你仍然無法弄清楚。
如果我說,這樣做: [docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES] [docController dismissMenuAnimated:YES]; //似乎沒有做任何事情... 沒有任何反應。 – 2010-07-15 20:18:31
docController = [[UIDocumentInteractionController interactionControllerWithURL:theURL] retain]; \t docController.delegate = self; \t [docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES]; \t [docController dismissMenuAnimated:YES]; //似乎沒有做任何事情...... 這就是代碼。 – 2010-07-15 20:21:20
它適合你嗎? – 2010-07-16 12:26:40