gpt4 book ai didi

ios - ePub 文件的统一类型标识符是什么?

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:07:52 27 4
gpt4 key购买 nike

.epub 文件的 UTI 是什么?

阅读Developer Library在其他任何地方都找不到。

最佳答案

“统一类型标识符”框架为系统定义的类型定义常量,例如 epub :

A type that represents EPUB format data.The identifier for this type is org.idpf.epub-container.

可以在运行时获取类型标识符

import UniformTypeIdentifiers

print(UTType.epub)
// org.idpf.epub-container

另一种方法是从可以打开 EPUB 文件的应用程序(例如 Books 应用程序)中检查 Info.plist:

...
<key>LSItemContentTypes</key>
<array>
<string>org.idpf.epub-container</string>
</array>
...

关于ios - ePub 文件的统一类型标识符是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20197815/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com