简体   繁体   中英

How do you open the Gallery App from an app?

I have an app that takes screenshots and saves them to an album in the iOS gallery app. I want to be able to open the gallery app from my app. Is this possible?

No, sorry not possible. Some apps allow you to open them from within your app using URL schemes but the built in iOS photos app is not one of them.

Only way to see the photo album is by creating a UIImagePickerController and setting its source type as UIImagePickerControllerSourceTypePhotoLibrary . This will open it in album view inside the app. I am not sure whether that satisfies your requirement completely.

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

Alternatively you can also check asset library and the sample code

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM