开发者

How to configure properties of UIScrollView

开发者 https://www.devze.com 2022-12-13 15:38 出处:网络
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.
  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 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)
0

精彩评论

暂无评论...
验证码 换一张
取 消