Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you implement swipe-able image stacks like the Photo app using the iPhone SDK?

I would like to take a stack of images (or potentially an array of URLs to download images) and display them in full screen, one at a time, using user swipes to smoothly animate the next image in the stack, using the iPhone SDK. Apple's Photo.app seems to do this. Additionally, if the image has not been retrieved yet, I'd like to display the progress indicator.

Can you point me to example code and explain how this technique would be implemented?

like image 247
Kevin Elliott Avatar asked Feb 02 '09 18:02

Kevin Elliott


People also ask

Can you image search on iPhone?

On your iPhone or iPad, go to Google Images. Search for an image. Tap the image. At the top right, tap Search inside image .

How do you write on a picture on iPhone 13?

Go to Photos and select the photo you want. Tap Edit, then tap the Markup button . Tap the Add button to add text, shapes, and more. Tap Done, then tap Done again.


1 Answers

You need to use UIScrollview's page control mechanism. Apple has plenty of sample code, including one called, strangely enough, Page Control:

http://developer.apple.com/iphone/library/samplecode/PageControl/index.html

If you want any behavior beyond that, you'll have to roll it yourself.

like image 124
August Avatar answered Oct 05 '22 22:10

August