Это полный ответ ... все в одном месте
NSDictionary *nsd = [[asset3 defaultRepresentation] metadata];
NSString *widthStr = [nsd objectForKey: @"PixelWidth"];
NSString *heightStr = [nsd objectForKey: @"PixelHeight"];
NSLog(@"nsd: %@ ... widthStr: %@ ... heightStr: %@ ...", nsd, widthStr, heightStr);
выход:
nsd: {
ColorModel = RGB;
DPIHeight = 72;
DPIWidth = 72;
Depth = 8;
Orientation = 1;
PixelHeight = 1136;
PixelWidth = 642;
"{Exif}" = {
ColorSpace = 1;
ComponentsConfiguration = (
1,
2,
3,
0
);
ExifVersion = (
2,
2,
1
);
FlashPixVersion = (
1,
0
);
PixelXDimension = 642;
PixelYDimension = 1136;
SceneCaptureType = 0;
};
"{TIFF}" = {
Orientation = 1;
ResolutionUnit = 2;
XResolution = 72;
YResolution = 72;
};
} ... widthStr: 642 ... heightStr: 1136 ...