Question

I want to make an photo gallery in my iPhone app, but with photos in all directions, like a mosaic.

enter image description here

Is it possible?

Maybe not with a lot of UIImageViews, but just one, and just changing the photos. The problem is: I need a sliding (or something else) effect.

I will be glad if anyone help me.

Was it helpful?

Solution

You can create it yourself with 2 image views, each with a pan gesture recognizer (because only 2 images can ever be on screen at the same time.

Basically, show the first image view. When a pan is detected, determine its direction. That will tell you which image to load and how I perform the animation.

The animation is as sime as changing the frames of the 2 image views. Add the new image view off screen then animate both of the 'sideways' till the old view is off screen and the new one is positioned. Then you can discard the old one or keep and reuse it for the next gesture.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top