SHARE
TWEET

Untitled

a guest Nov 24th, 2012 103 Never
  1. ALAuthorizationStatus status = [ALAssetsLibrary authorizationStatus];
  2.        
  3. [assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:^(ALAssetsGroup *group, BOOL *stop) {
  4.         if (*stop) {
  5.             return ;
  6.         }
  7. // TODO : access granted
  8.     *stop = TRUE;
  9.     } failureBlock:^(NSError *error) {
  10.         // TODO: User denied access. Tell them we can't do anything.
  11.     }];
RAW Paste Data
Top