By defaults, the location of Photos Library is "~/Pictures/Photos\ Library.photoslibrary"
but the photosLibrary can be moved to other location and the Application Photos always know the new location of Library, how does Photos implement this . Or anyone can tell me how to get the location of library programmatically ?
Asked
Active
Viewed 76 times
0

Hermann Klecker
- 14,039
- 5
- 48
- 71

jimwan
- 1,086
- 2
- 24
- 39
-
What do you want to do? There is probably a smarter way than messing around with the path. – Hermann Klecker Nov 18 '15 at 09:00
-
@HermannKlecker , i want to get images under that path and i update my question. Do you know is there any way to get the location of Library? – jimwan Nov 18 '15 at 09:33
-
Not directly but you can use the AssetsLibrary to get all images. Once you found one there are even ways of finding the path name to the image file but I understand that you do not need the path then anymore. Just don't care where they are stored and use the AssetsLibrary. See http://stackoverflow.com/questions/12633843/get-all-of-the-pictures-from-an-iphone-photolibrary-in-an-array-using-assetslibr – Hermann Klecker Nov 18 '15 at 09:39
-
Is there a version for OSX @HermannKlecker – jimwan Nov 18 '15 at 10:05
-
Apologies. I'll mend you rtags. – Hermann Klecker Nov 18 '15 at 10:21