Xcode won't compile UTType class methods

I'm having trouble using any of the UTType class methods

When I try to use any of the class methods such as:

`

UTType          *foo;

foo = [UTType typeWithIdentifier: @"foo" ];

Xcode displays the error:

No known class method for selector 'UTTypeImage'

Is there a header file I need to #import?

  • #import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>

Add a Comment

Accepted Reply

I found it:

#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>

Replies

I found it:

#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>