How to scroll the Scrollview side of the limit

advertisements

Hi in my app needs to display list of images in horizontal list with center focus. It works fine by using UIScrollView and PagingEnable=Yes; now i could not scroll the content which is displayed out side of UIScrollView bound.

How is it possible to scroll the UiscrollView out side bounds.


Lets say you have a container view which is the same height as your images, but is sized so that all images can fit in it. Each image's frame will have an "x" offset that puts it on the end of the image before it. Now lets say your container has 3 images in it, each 320 wide, for a total of 960.

Given that, you have to set the scrollView.contentSize = CGSizeMake(960, 320);