Advertisement
Guest User

Untitled

a guest
Nov 24th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement