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有开放接口的情况下,且并不针对文件。 求教高手如何利用iTunesMobileDevice.dll库安装ipa到iphone中 iOS 推送 紧急求助 在 init方法中调用NSLog输出没有用?????? 求最新的iPhone开发环境设置教程和下载地址 请问下各位怎么给iphone上的程序做自动化测试? 将App程序发到App store ios系统网站开发? ios应用,开发些什么产品,会用到socket? tableViewCell里面设置ui的frame没反应?? iOS获取手机通讯录如何优化? 如何解决数组越界问题 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文件后缀名去动态设置