Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i display only limited photos with PHPickerViewController?

I use Limited Photos Library feature and have selected a few photo but when use PHPickerViewController to select images in the application, PHPickerViewController shows all images in the gallery instead of just a few selected ones before.

Is it possible to display only pre-selected images in PHPickerViewController? If not, how to display a list of pre-selected images so that the user can choose as UIImagePickerController before.

Thanks to everyone for sharing and commenting

like image 910
suzu Avatar asked Oct 08 '20 08:10

suzu


People also ask

How do you get full photo access on iPhone?

You can change your photo permissions at any time. On your iPhone or iPad, open Settings. Tap Photos. Select a permission option.

How do I manage photo library permissions in IOS?

Access to photos can also be controlled via Settings. To adjust access for your camera go to Settings → Privacy → Photos, choose Camera+ from the list. Change permissions to the new Selected Photos option to manually pick Photos items Camera+ will see. To change those selections, tap Edit Selected Photos.

How do I select all photos in ios15?

Once you're looking at the photos you want, tap Select in the top right corner of the screen. Then, quickly swipe your finger across the images you want to deal with in bulk, marking each selected photo with a blue check mark.


1 Answers

I think it is separate API

  1. Requesting for photo access permission
  2. Displaying UIImagePicker/PHPicker view controller

ad. 1 you request access so then you can get all photos or selected photos and display them on you ui just like Instagram app do it. Then you can add Manage button to change limited access permission.

ad. 2 If you are using UIImagePicker or PHPicker you do not need to request for permission, and moreover this two view controllers give you read-only access to all photos.

So I think if you are using UIImagePicker, PHPicker you do not need to request Photo access permission. If you request it you are using it for more advanced usage and do not use UIImagePicker or PHPicker just create your custom UI....?

like image 105
Michał Ziobro Avatar answered Sep 25 '22 02:09

Michał Ziobro