Creates a uniform type identifier for the type indicated by the specified tag.
- iOS 3.0+
- macOS 10.3+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Services
The class of the
inparameter. For more information, see Type Tag Classes.
The tag to translate into a uniform type identifier.
NULL, the returned uniform type identifier must conform to this parameter.
A new CFStringRef containing a uniform type identifier, or
NULL if inTagClass is not a known tag class
This function is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This function searches all UTI declarations for a matching translation. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.
If there is more than one possible UTI for the specified tag, the UTI that will be returned is undefined. See
UTType if you need to see all search results.
If no result is found, this function creates a dynamic type beginning with the
dyn prefix. This allows you to pass the UTI around and convert it back to the original tag.