Consider these 3 lines:
BOOL conform = [UTTypeJPEG conformsToType:UTTypeJPEG];
BOOL conform2 = [UTTypeJPEG conformsToType:UTTypeImage];
BOOL conform3 = [UTTypePNG conformsToType:UTTypeImage];
In iOS15 running in the simulator, surprisingly for me, they are not all YES, the last 2 are NO.
Apple has deprecated the previous kTypeXXX types in iOS14, so I'm trying to fix those deprecations, but I cannot get it to work in iOS15.
Is this not working or am I doing something wrong here?
-
—
Zaphod Beeblebrox
-
—
OOPer
Add a CommentI do also get these weird statements in the log:
Failed to realize static UTType instance 0x10eb470b0 for identifier public.jpeg. Please file a bug. The type should be present in Core Types.As far as I tried your code, all three returned YES. How have you tested it?