iphone - ALAssetsLibrary doesn't retrieve image URL's in physical iOS 4.1 iPod device? -


I am trying to reach photo photo photo images of the iPhone through the Elassette Library. I can access all the photo albums and get the Asset URL of each images on the simulator through the following code:

  - (zero) viewDidoadload [[Super Viewedload]; Zero (^ Asset Enrator) (Structure Elassette *, NSUINTER, BOL *) = ^ (Elassette * result, NSUntengar index, BOL * stop) {if (result! = Null) {NSLog (@ "Asset View:% @", result ); // property is an NSMutableArray. [Property addObject: result]; // Here the image URL of the property is kept in the NSMUtable URL URL StoreRR NS URL * URL = [[Default Refereration URL]; [UrlStoreArr addObject: url]; }}; Zero (^ Asset Group Emulator) (Structure ALSSet Group *, BOLD *) = ^ (ALSSet Group * Group, BOLD * stop) {if (Group! = Zero) {[Group Enumerate Asset Using Blocks: Assignment]; } [Self. Stop the activity]; [Self. Activation sethead: yes]; }; Property = [[NSMUTABELARRAOL] INIT]; Library = [[elasette library alloc] init]; [Library Enumerate Groups Waste Type: Block Using the Elasticus Group Album: Asset Group Enumerator Failure: Lock: ^ (NSERR * Error) {NSLog (@ "Failure"); }]; UrlStoreArr = [[NSMutableArray alloc] init]; } - (zero) GetURLImages {for (int i = 0; i & lt; [urlStoreArr count]; i ++) {// to get every image URL here ... NSString * str = [urlStoreArr ObjectItindex: i ]; NSLog (@ "str:% @", str); }}   

This works as expected on the iOS 4.0 simulator, i.e., all images url (example: property-library: //asset/asset.JPG? Id = 1000000002 & Amp; ext = JPG ). But it does not retrieve the iPod 4.1 device on the iPad's iPad. What could be the problem here? Can someone help me fix so that the code can work on the iPod? I'm totally confused.

Thank you!

Try whatever I have mentioned,

It also depends on what you want.

Comments