Retrieving Conformance Lists

UTTypeCopyDeclaration() offers the most general (and most useful) of all UTI functions in the iOS API. It returns a dictionary that includes the following keys:

Image kUTTypeIdentifierKeyThe UTI name, which you passed to the function (for example, public.mpeg)

Image kUTTypeConformsToKeyAny parents that the type conforms to (for example, public.mpeg conforms to public.movie)

Image kUTTypeDescriptionKeyA real-world description of the ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.