Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Page View Controller with different image based animations using Crystal Ball.

Hi Guys,

I have a page view controller which I would like to display 5 different image based animations on each page. I am currently using both the crystall ball images and method of storing images into an array (60 images) and then animating it. I have changed the colour of the ball for each 5 images to show the differences when they animate:

Orange Crystal Ball - 60 images Pink Crystall Ball - 60 images Red Crystall Ball - 60 images Black Crystal Ball - 60 images Yellow Crystal Ball - 60 images

What is the best way of doing this as I feel like having 5 sets of 60 images, all stored in arrays would not be the best way of implementing the different animations? Surely it would use up a lot of memory?