Objective C code
documentController&=&[UIDocumentInteractionController&interactionControllerWithURL:[NSURL&fileURLWithPath:filePath]];
documentController.delegate&=&self;
documentController.UTI&=&@&com.microsoft.word.doc&;
[documentController&presentOpenInMenuFromRect:CGRectMake(760,&20,&100,&100)&inView:self.view&animated:YES];
其中filePath为你要打开的文件路径,
根据filePath文件后缀名去动态设置
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:1694次
排名:千里之外
(1)(4)(1)(1)(1)(1)}