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?