最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[记录]swift调用iOS内置程序打开某个文件

iOS crifan 3259浏览 0评论

swift open file

swift open file via app

io – How do I open a file in Swift? – Stack Overflow

sketchytech/FileLoad_Swift_iOS

xcode – Read file in swift, iOS playground – Stack Overflow

xcode – Simple way to read local file using Swift? – Stack Overflow

shoumikhin/StreamScanner: Simple scanner for data streams like STDIN in Swift

Working with the Mac OS File System using Swift — Brand Pending

Open Files In Swift PlaygroundsSwift and Painless

email – Open attachment from mail using ios 8 app [swift] – Stack Overflow

Registering the File Types Your App Supports

Building a Simple Share Extension in iOS 8 App with Swift

swift open document

NSDocumentController Class Reference

swift call app open file

swift call other application to open file

xcode – Open File Dialog crashes in Swift – Stack Overflow

swift NSOpenPanel

swift nsopenpanel example

objective c – NSOpenPanel in Swift . How to open? – Stack Overflow

swift – Detailed instruction on use of nsopenpanel – Stack Overflow

NSOpenPanel Class Reference

Using NSOpenPanel in Swift – SnackCoffee.me

swift open file dialog

DenBeke – Swift: “Open file…” dialog with NSOpenPanel

About Files and Directories

iOS 调用程序打开文件

iOS  程序 打开文件

IOS 如何调用其他应用程序打开我下载好了的 EXCEL WORD PDF 等-CSDN论坛-CSDN.NET-中国最大的IT技术社区

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];

顺便说一下还可以用[[UIApplicationsharedApplication] openURL:[NSURLURLWithString:@"taobao://"]]这种方式直接调用app。不过一般存在于自家app互调或者想要调用的app有开放接口的情况下,且并不针对文件。”

好像是:

UIDocumentInteractionController

System-Declared Uniform Type Identifiers

Introduction to Uniform Type Identifiers Reference

iphone如何调用外部程序打开一个pdf文件 | iOS开发 – CocoaChina CocoaChina_让移动开发更简单

iOS 如何在一个应用程序中调用另一个应用程序 – 天鹰的日志 – 网易博客

IOS 在一个应用里打开另一个应用 及其 两个应用互相调用 – xiaoxuan415315的专栏 – 博客频道 – CSDN.NET

iOS 用其他应用程序打开文件功能如何实现的 | iOS开发 – CocoaChina CocoaChina_让移动开发更简单

还是:

UIDocumentInteractionController

Document Interaction Programming Topics for iOS

swift UIDocumentInteractionController

ios – UIDocumentInteractionController() swift – Stack Overflow

UIDocumentInteractionController Class Reference

UIDocumentInteractionController and Swift: Two rules to never forget

Programming-iOS-Book-Examples/ViewController.swift at master · mattneub/Programming-iOS-Book-Examples

iOS Development | Quick Look Preview Controller Swift

另外好像有个:QLPreviewController

swift QLPreviewController

Tutorial: Using The QLPreviewController For Viewing Documents

Preview Documents Tutorial with QLPreviewController [iOS developer:tips];

QLPreviewController Class Reference

Ray Wenderlich | Tutorials for Developers and Gamers

 Programming-iOS-Book-Examples/ViewController.swift at master · mattneub/Programming-iOS-Book-Examples

Programming-iOS-Book-Examples/bk2ch23p802fileHandoff at master · mattneub/Programming-iOS-Book-Examples

-》

mattneub/Programming-iOS-Book-Examples: Downloadable code examples for my books, "iOS 9 Programming Fundamentals With Swift" (bk1) and "Programming iOS 9" (bk2).

-》

https://github.com/mattneub/Programming-iOS-Book-Examples/archive/master.zip

Mobile and Social Network Technology: Tutorial: How to use QLPreviewController to preview files.

swift QLPreviewController example

qlpreviewcontroller – ios – when presentViewController is closed not working – Stack Overflow

先后解决了:

[已解决]NSInternalInconsistencyException’, reason: ‘UIDocumentInteractionController: invalid scheme (null)

[已解决]swift中代码运行出错:This application is modifying the autolayout engine from a background thread

转载请注明:在路上 » [记录]swift调用iOS内置程序打开某个文件

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
90 queries in 0.184 seconds, using 22.11MB memory