문제

What is the UTI for .epub files?

Read the Developer Library and can't find it anywhere else.

도움이 되었습니까?

해결책

The “Uniform Type Identifiers” framework defines constants for system defined types, such as epub:

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

One can obtain the type identifier at runtime with

import UniformTypeIdentifiers

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

Another way is to inspect the Info.plist from an application which can open EPUB files, such as the Books application:

...
<key>LSItemContentTypes</key>
<array>
    <string>org.idpf.epub-container</string>
</array>
...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top