-
-
Save chrisntr/381ec5204261e54a0e8c to your computer and use it in GitHub Desktop.
Error when accessing the group's name in ALAssetsGroup property.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALAssetsLibrary library; | |
protected List<ALAsset> assets = new List<ALAsset>(); | |
public override void ViewDidLoad () | |
{ | |
base.ViewDidLoad (); | |
library = new ALAssetsLibrary(); | |
library.Enumerate(ALAssetsGroupType.All, AssetGroupEnumerator, (error) => { | |
Debug.WriteLine("Failure {0}", error.LocalizedDescription); | |
}); | |
} | |
void AssetGroupEnumerator(ALAssetsGroup group, ref bool stop) | |
{ | |
if(group != null) | |
{ | |
Console.WriteLine("Assets in {0} is {1}", group.Name ?? "group" , group.Count); | |
//group.Enumerate(AssetEnumerator); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment