I want to access iPhone simulator's Photos app from my application. When we see this path from mac, we get the path like: /Users/username/Library/Application Support/iPhone Simulator/6.0/Applications/CD5A4D24-DDD0-48C6-8564-40CDD22F99AF/Documents/foldername. Can we get the path of other folders like media, root, library and tmp which is outside our application? Because i want to access the images which are inside media-> DCIM->100APPLE. Please help me with this issue with any sample codes. Tell me which class and method i have to use.
Asked
Active
Viewed 366 times
0
-
So you want to create an application that is working on the simulator only (not on a real device)? – Till Aug 06 '13 at 12:32
-
If you want to add photos to the simulator, you might want to check out this answer. http://stackoverflow.com/questions/468879/adding-images-to-iphone-simulator – Konrad77 Aug 06 '13 at 12:33
-
No i want to access these photos in real device as well. But before that i want to access them in my simulator and zip them. So please tell me how to get the path for this Photos application, so that i can display all the images and select them to zip them. – vanya Aug 06 '13 at 12:55
-
1Look into the `ALAssetsLibrary` class for accessing photos and videos. – rmaddy Aug 06 '13 at 13:57
-
Can you please help me with a sample code for ALAssetLibrary? Because iam getting errors when i use this class. – vanya Aug 07 '13 at 04:55