ASAssetQuery

From iPhone Development Wiki
Revision as of 12:40, 6 June 2016 by Twodayslate (talk | contribs) (Created page with "ASAssetQuery is used to list a set of assets on your iDevice. Assets are generally stored in <code>/var/mobile/Library/Assets/</code> Here is how we list all the dictionary a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ASAssetQuery is used to list a set of assets on your iDevice. Assets are generally stored in /var/mobile/Library/Assets/

Here is how we list all the dictionary assets on the iDevice

ASAssetQuery * aq = [[%c(ASAssetQuery) alloc] initWithAssetType:@"com.apple.MobileAsset.DictionaryServices.dictionary2"];
NSError *err = nil;
[aq runQueryAndReturnError:&err];
HBLogDebug(@"err = %@", err);
NSArray *results = [aq results];
HBLogDebug(@"results = %@", results)

See also ASAsset.