iOS 开发 Document-Based App iOS 11 增加了 Files 应用,Xcode 中也增加了 Document-Based App 模版。可以快速创建和系统 File 应用 UI 一致的 Document-Based App。 代码编写 用模版创建新的工程后,Xcode 已经帮你创建了 DocumentBrowserViewController,DocumentViewController,Document 三个类。部分代码如下: // DocumentBrowserViewController.swift func documentBrowser(_ controller: UIDocumentBrowserViewController, didPickDocumentsAt documentURLs: [URL]) { guard let sourceURL = documentURLs.first else { return } presentDocument(at: sourceURL) } func presentDocument(at documentURL: URL)
iOS iOS BLE MIDI 关于 BLE MIDI 在iOS 8 和 OS X Yosemite 中,Apple 添加了对 BLE MIDI 的支持,iOS 设备与 BLE MIDI 设备通过蓝牙建立连接之后,应用就可以像与普通 MIDI 设备一样与 BLE MIDI 设备交互了。(After a connection is established, it simply appears as an ordinary MIDI device that any MIDI application can communicate with.) 在 iOS 上使用 BLE