objective c - Log the dimensions of an ALAssetRepresentation -


how log dimensions of image?

my code:

alassetrepresentation *asset = [alasset defaultrepresentation]; nslog(@"dim: %@", [asset dimensions]); 

i've tried lots of variations keep getting format warnings require cgsize (aka 'struct cgsize')

alassetrepresentation *asset = [alasset defaultrepresentation]; nslog(@"dim: %@", nsstringfromcgsize([asset dimensions])); 

Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -