November 2013
Intermediate to advanced
576 pages
19h 3m
English
The first time an app tries to access the ALAssetsLibrary, the device will ask the user for permission (as shown in Figure 23.1).
Figure 23.1 Access Permission dialog in the Asset Navigator sample app.
If permission is granted, the enumerateAssetGroupsBlock block will be executed; this is described in detail later in the section “Groups.” If permission is not granted, the assetGroupEnumErrorBlock block will be executed.
void (^assetGroupEnumErrorBlock)(NSError*) =^(NSError* error) { NSString *msgError = @"Cannot access asset library groups. \n" "Visit Privacy | Photos in Settings.app \n" "to ...
Read now
Unlock full access