Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 24th, 2012  |  syntax: None  |  size: 0.39 KB  |  views: 103  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.     }];
clone this paste RAW Paste Data