UIDocumentInteractionController

UIDocumentInteractionController

我正在使用 UIDocumentInteractionController 显示PDF文件。我的文件使用对用户不友好的编码文件名存储在文件系统中。我确实可以访问该文件的更友好的名称,但是该文件未使用该名称存储(出于唯一性原因)。

当我将文档加载到UIDocumentInteractionController中时, View 会在标题栏中显示不友好的“真实”文件名。

有什么方法可以更改UIDocumentInteractionController所显示的标题吗?

最佳答案

UIDocumentInteractionController具有name属性,您可以将其设置为用户友好名称。该名称将在显示的文档的标题栏中使用。

关于ios - UIDocumentInteractionController更改显示 View 的标题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12855362/

10-11 15:42