Please i have an issue on the collection view

hello all
i hope all is well

how can i select all cells in collection view
i have an collection view that display images from photo library but i need to select all this cells i use the visible cell but this select only the visible cells not all can anyone tell me please how can i select all cells in collection view

thanks advance

If you’re using a collection view right, it will only be keeping enough cells in memory to display the content of one screen. The visible cells should be all the cells there are.

If you want to get all the images, get the images, not the cells displaying them.

thank you very much did you mean must i load the images not from the cell
but how can i mark the cells with check so display the user check this image?

thank you