views:

133

answers:

1
  1. I want a UIScrollView in which i have to paste 25 images of same size(256*256).
  2. The 13th picture should come in the centre,ie, when the app loades.
  3. Then when i swipe right, left, up or down it should scroll as normally.

For doing this what should be the specifications of the UIScrollView,ie, 1.what should be its size 2.ContentViewSize 3.where should be its origin.

Plz help me.

+1  A: 

If your scrollView is going to be shown full-screen in portrait orientation, you should use the following sizes (assuming you don't hide the status bar):

  • UIScrollView frame: 320 x 460
  • contentSize: 8000 x 460 initial
  • contentOffset: (3840 , 0)
Philippe Leybaert
Actually I did it. And i have given the solution above. Do you have any idea how to create an infinte scroll using UIScrollView. With pictures loading on any end it goes so that it appears like a MapKit? Any answer would be of gr8 help.
wolverine
I see that you asked another question in that regard: http://stackoverflow.com/questions/1845789/how-to-create-a-uiscrollview-of-infinite-scrolling
Brad Larson