UIDocumentPickerViewController以阿拉伯语显示翻转的内容

问题描述 投票:1回答:1

这是我打开文档选择器的方式

func openDocuments(){
        let documentPicker = UIDocumentPickerViewController(documentTypes: ["public.data"],in: .import)
        documentPicker.delegate = self
        documentPicker.modalPresentationStyle = .fullScreen

        self.present(documentPicker, animated: true) {
        }

    }

注意单元格如何翻转标签

enter image description here

PS:

我有

UIView.appearance().semanticContentAttribute = .forceRightToLeft

因为我正在开发的应用程序仅使用阿拉伯语

ios swift cocoa-touch uidocumentpickerviewcontroller
1个回答
0
投票

简单

documentPicker.view.semanticContentAttribute = .forceLeftToRight

已解决,但我仍然觉得很奇怪。

© www.soinside.com 2019 - 2024. All rights reserved.