Contents

class(forType:)

Returns the image representation subclass that handles image data for the specified UTI.

Declaration

class func `class`(forType type: String) -> AnyClass?

Parameters

  • type:

    The UTI string identifying the desired image type. Some sample image-related UTI strings include “public.image”, “public.jpeg”, and “public.tiff”. For a list of supported types, see UTCoreTypes.h.

Return Value

A Class object for the image representation that can handle the UTI, or nil if no image representation could handle the data.

See Also

Managing Representation Subclasses of Images