iphone - ALAssestsLibrary activates only if device option is selected in xcode -


text "itemprop =" text ">

I used the frame to display the photos from the album album. But the code to use ALAssetsLibrary I found that 1) edit codesense show While doing this, only methods can be selected under this framework when the option 'device' is selected in the dropdown menu in the dropdown menu.

2) Also, when I tried to create and run the simulator, holding the array was a blank object representing the images, although the simulator had two images.

3) I am using blocks in code, which does not move while debugging.

Do these two meanings that the structure is functional only when moving in the device? I just do not have a device with me, so can not check for myself. Void (^ assetEnumerator) (struct ALAsset * !, NSUInteger, BOOL *) = ^ (ALAsset * result, NSUInteger index, BOOL * closed) {if (result = zero) {NSLog ( @ "See property:% @", results); [PhotoAdded object: result]; }}; Zero (^ Asset Group Emulator) (Structure ALSSet Group *, BOLD *) = ^ (ALSSet Group * Group, BOLD * stop) {if (Group! = Zero) {[Group Enumerate Asset Using Blocks: Assignment]; }}; Elasette Library * Library = [[Elsace Library Library] init]; [Library enumerateGroupsWithTypes: ALAssetsGroupAll usingBlock: assetGroupEnumerator failureBlock: ^ (NSError * error) {NSLog (@ "failure"); }]; This is working for me using iPhone Simulator with iOS 4.2 and Xcode 3.

You are calculating all groups in enumerateGroupsWithTypes: usingBlock: failureBlock:.

If you are using this tutorial, the one who uses ALAssetsGroupAlbum is
the same, photos saved on the simulator to get the use of ALAssetsGroupAll instead of ALAssetsGroupAlbum.

Comments