Skip to content

Instantly share code, notes, and snippets.

@propstm
propstm / iOS5: ALAssetLibrary Group Parser for Most Recent Asset
Last active December 10, 2015 07:28
Method that takes an ALAssetLibrary group name as a string and returns the last ALAsset entered for that group.
-getLastAssetFromCustomFolderWithName:(NSString*)folderName{
if(assets == nil){
//Used to collect our applicable assets
assets = [[NSMutableArray alloc] init];
}
if(library == nil){
//
//The lifetimes of objects you get back from a library instance are tied to the lifetime of the library instance.