Users Pricing

forum

home / developersection / forums / checking asset existance of alaasset in ios.

Checking asset existance of ALAasset in iOS.

Jayden Bell 1496 14 Jan 2016

I have an array of urls that contains ALAsset urls. I want to check existance of any specific url.
I tried this code:

NSData *assets = [[NSData alloc] initWithContentsOfFile:@"asset-library://asset/asset.PNG?id=0X32031&ext=JPG"];

but the nsdata variable assets is always nil. So, how can I solve this problem?


Jayden Bell

Other


1 Answers

Tarun Kumar 14 Jan 2016 Accepted Answer