IOS 如何调用其他应用程序打开我下载好了的 EXCEL WORD PDF 等 应用程序 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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为你要打开的文件路径,UTI可以去https://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html根据filePath文件后缀名去动态设置 顺便说一下还可以用[[UIApplicationsharedApplication] openURL:[NSURLURLWithString:@"taobao://"]]这种方式直接调用app。不过一般存在于自家app互调或者想要调用的app有开放接口的情况下,且并不针对文件。 uipickerview再显示的时候停留在上一次选择的地方 IOS项目如何定价呢 求指导 xcode代码提示 iphone游戏开发? 局域网内如何现实把文件从电脑传到手机? 做iphone个人开发有没前途啊 iphone中如何获取磁盘的剩余空间大小 应用中启动qq聊天 关于utility application的入门问题。 imageView如何自适应屏幕? 如何解决数组越界问题 XCode Socket中文传输问题(乱码,可能是编码错误)
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为你要打开的文件路径,
UTI可以去
https://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
根据filePath文件后缀名去动态设置