Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 23rd, 2013  |  syntax: None  |  size: 0.39 KB  |  hits: 20  |  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.     }];