using enumeration block
<p>I have a issue with enumerationblock , when i try to access the vidoes and audios from the
phone using iPhone OS 4.0, i found the following api from the class AssetsLibrary</p>

<p>Invokes a given block passing as a parameter each of the asset groups that match the given asset group type.</p>

<pre><code>- (void)enumerateGroupsWithTypes:(ALAssetsGroupType)types
                      usingBlock:(ALAssetsLibraryGroupsEnumerationResultsBlock)enumerationBlock
                    failureBlock:(ALAssetsLibraryAccessFailureBlock)failureBlock
</code></pre>

<p>The signature for the ALAssetsLibraryGroupsEnumerationResultsBlock is given as follows :</p>

<pre><code>typedef void (^ALAssetsLibraryGroupsEnumerationResultsBlock)(ALAssetsGroup *group, BOOL *stop);
</code></pre>

<p>SO how can i create a ALAssetsLibraryGroupsEnumerationResultsBlock for passing as a parameter for the above method ..</p>

<p>Any help will be greatly appreciated.</p>

<p>Best Regards,
Mohammed Sadiq....</p>
