Search code examples
iosgalleryuistepper

Accessing the image gallery through code for displaying in image view


I've just started a new project where I want the user to be able to pick one of the images in the devices gallery.

I am trying to achieve this by using an ImageView and a UIStepper.

I want to write all images inside the gallery into an array and have the imageView navigate through the array with the + and - buttons of the stepper (selecting the current array position +1 or -1 depending on click).


Solution

  • OK as per prior discussion, here is the project: AssetLibraryPhotosViewer

    Have not done an extensive testing, though does seem to run OK both on simulator and real device