views:

38

answers:

1

Hi All,

I am going through the Sample code of iPhone WWDC 2010 - 104 PhotoScroller App.

It's working great with my project related images (PDF Page Images)

Now I want to start the app from a custom image no - Say 5. And it should show 6th image on next swipe and 4th on previous swipe.

Can anyone help in this Regard ?

+1  A: 

I think you should try modifying the contentOffset of the UIScrollView.

Depending on the width frame you should set it to something like :

imagePos * scrollView.frame.width

where imagePos begin to 0 and end to (nbrImage - 1)

Good Luck ;-)

Vinzius
Thank you very much !! Just added one line and it worked great !!!
Roger_iPhone
Hi Vinzius, How to detect touches in the PhotoSCroller App. I want to Zoom the photo on double Tap. The Touchesbegan method is being called in TilingView Class. Then I used [super touchesbegan: withevent:] and now the touches are in the ImageScrollView Class. How to get these touch events in PhotoViewController. How to achieve the zoom in and zoom out on touch ?
Roger_iPhone