我写了一个 UIDocumentPicker 的程序。
但是,如果我在 iOS 11 模拟器上点击“浏览”,加载继续显示,无法显示。
需要什么样的回应?
开发环境
- Xcode:版本 9.0 测试版 5
- 模拟器:iPhone 7 Plus (iOS 11.0)
错误图像
代码
https://github.com/amarron1/SampleDocumentPicker
class ViewController: UIViewController, UIDocumentPickerDelegate {
let UTIs:[String] = ["public.data"]
// Save to this application from iCloud
@IBAction func importDocumentPicker(_ sender: Any) {
let importPicker = UIDocumentPickerViewController(documentTypes: self.UTIs, in: .import)
importPicker.delegate = self
present(importPicker, animated: true, completion: nil)
}
}
日志
2017-09-06 11:37:54.790680+0900 SampleDocumentPicker[40282:5448334] Unbalanced calls to begin/end appearance transitions for <_UIWaitingForRemoteViewContainerViewController: 0x7fb54c6153b0>.
2017-09-06 11:38:04.101520+0900 SampleDocumentPicker[40282:5448334] [DocumentManager] The view service did terminate with error: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}