如何记录图像的尺寸?
我的代码:
ALAssetRepresentation *asset = [alAsset defaultRepresentation];
NSLog(@"dim: %@", [asset dimensions]);
我尝试了很多变化,但仍然需要格式警告,需要CGSize(又名'struct CGSize')
答案 0 :(得分:0)
ALAssetRepresentation *asset = [alAsset defaultRepresentation];
NSLog(@"dim: %@", NSStringFromCGSize([asset dimensions]));