user3685566
user3685566

Reputation: 27

Scrolling through images smartly

Part of the App I am developing will have an image viewer section. Below is a screenshot of how the view is laid out.

enter image description here

I want the bottom to be horizontally scrollable throughout the images. I am not 100% how I would go about this and would really appreciate any advise/tutorials/answers. I know I will need to store my images in an array (which I will populate from my CoreData instance) and populate them into the mini image views but I don't know how I can 're-use' the image views as I scroll through, to save on memory. I have had a look at the WWDC video for 'Designing Apps with Scroll Views' but this isn't exactly what I am trying to achieve, as I have multiple image views on the view at once.

Any help would be very much appreciated, I am quite new to iOS Development just so you know. Thanks guys!

Upvotes: 0

Views: 129

Answers (1)

Sadiq Jaffer
Sadiq Jaffer

Reputation: 500

Have a look at UICollectionView as it's pretty much designed for what you're trying to achieve.

Upvotes: 1

Related Questions