How to configure properties of UIScrollView
- I want a UIScrollView in which i have to paste 25 images of same size(256*256).
- The 13th picture should come in the centre,ie, when the app loades.
- 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 s开发者_开发百科ize 2.ContentViewSize 3.where should be its origin.
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)
精彩评论