这是我打开文档选择器的方式
func openDocuments(){
let documentPicker = UIDocumentPickerViewController(documentTypes: ["public.data"],in: .import)
documentPicker.delegate = self
documentPicker.modalPresentationStyle = .fullScreen
self.present(documentPicker, animated: true) {
}
}
注意单元格如何翻转标签
PS:
我有
UIView.appearance().semanticContentAttribute = .forceRightToLeft
因为我正在开发的应用程序仅使用阿拉伯语
简单
documentPicker.view.semanticContentAttribute = .forceLeftToRight
已解决,但我仍然觉得很奇怪。